Writing to a VB6 file without a new line?

I have several lines that I want to write to a file in VB6, I can write this well, but every time I do this, a new line is automatically added after each write command.

Is there a function or way to just write to a file without an automatic new line? Thanks.

+4
source share
2 answers

The advice for using a semicolon is correct, but you most likely don’t want to use it in combination with Write # , which will quote your output. Use Print # instead.

 Print #handle, "Hello"; Print #handle, " world"; 
+8
source

You can use a semicolon after the Write command, for example:

 Write #handle, "Hello"; Write #handle, "world"; 
0
source

Source: https://habr.com/ru/post/1305523/


All Articles