HI,
More File Questions..
How can I write to a line...
Like
Dim strtxt1 as string
line1 of C:\win\dir.enc = strtxt1
how do you do that?
and Getting a line!
strtxt1 = line1 of Dir.enc
Printable View
HI,
More File Questions..
How can I write to a line...
Like
Dim strtxt1 as string
line1 of C:\win\dir.enc = strtxt1
how do you do that?
and Getting a line!
strtxt1 = line1 of Dir.enc
I'm pretty sure that if you make it 1 string that its for 1 word, but then again I'm only 50% sure, but you can do:
it might work, might notCode:on error resume next
open "c:\win\dir.enc" for input as #1
input #1, text1.text
close #1
open "c:\win\dir.enc" for output as #2
Print #2, "your stuff" & " " & vbnewline & " " & text1.text
close #2
Use Lineinput to input a line from a file and don't open in output, it will erase the whole file.
I suggest you could have a look on my file tutorial, on my homepage