-
Hi all,
I'm trying to save a file that contains two lines of information. One line is the Sender's name, the next line is the receiver's name.
However, when i save the file, it appends quotaion marks ("") to the beginning and end of each lin. How do I prevent this from happening?
thanx
-
what method are you using, Binary, Output, or Input or whatever. Because it depends on that, or it might depend on the method u write to the file. There's print, line...
-
Use this:
Open "c:\foo.dat" for Output As #1
Print #1, SenderName
Print #1, RecieverName
Close #1
If you want to add those two lines to the end of c:\foo.dat, use the code:
Open "c:\foo.dat" For Append As #1
Print #1, SenderName
Print #1, RecieverName
Close #1
-
Shoudn't be hard
Code:
open file for output as #1
Print line1
Print line2
close #1
use append instead of output if you don't want it to overwrite, don't use binary if this is the only purpose of the file