Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:56 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMB4W: Write to Output File Oddness

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1109
Posted: 12:18am 05 Nov 2023
Copy link to clipboard 
Print this post

The following writes nothing to the output file:
option console serial

Dim fname$ = "testfile.txt"

open fname$ for output as #2

print #2, 123
print #2, 456
print #2, "ABCD"

close #2

end

If the first line, option console serial, is commented out, it writes the expected text to the output file. Is this behaviour correct?

I haven't tested this on any other platforms.
Visit Vegipete's *Mite Library for cool programs.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024