I have some strings I want to write to a file in VB6. I can write it fine, but every time I do it adds a new line automatically after each write command.
Is there a function or a way to just write to the file without the automatic new line?
The advice to use the semicolon is correct, but you most likely don't want to use it in conjunction with Write #
, which will enclose your output in quotation marks. Use Print #
instead.
Print #handle, "Hello";
Print #handle, " world";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With