i have a file and i want to read one line at a time from it and send it
the file has inside the following...
oneline
secondline
thirdline
i want to open the file and read from inside the first line that sais "oneline" and send it...then the second then the third...
Squirm
04-18-2003, 06:17 PM
Look up the Line Input statement.
jayceepoo
04-18-2003, 06:17 PM
Something like this should work.
Dim i As Integer
Dim sInput As String
i = FreeFile
Open sMyFilePath for Input as #i
While Not EOF(i)
Input #i, sInput
'This is where you'd send it, whatever that means...
Wend
Close #i
print #1, string
this is used to put strings in files
but it does not go to the row 1 then row 2 then row 3
print #1 "<html>"
and after some code i have
print #1 "<body>"
but body goes next to html in the file like this
<html><body>
i want to put it the one down the other...
Chr1s
04-18-2003, 07:14 PM
print #1, string
this is used to put strings in files
but it does not go to the row 1 then row 2 then row 3
print #1 "<html>"
and after some code i have
print #1 "<body>"
but body goes next to html in the file like this
<html><body>
i want to put it the one down the other...
print #1, "<html>" & vbcrlf
print #1, "<body>"