Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing to file VB6 without new line?

Tags:

file

newline

vb6

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?

like image 967
James Wilkinson Avatar asked Jan 23 '23 08:01

James Wilkinson


1 Answers

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";
like image 182
Jim Mack Avatar answered Jan 31 '23 18:01

Jim Mack