Hey every one my help is not installed on the pc im using at the mo and i am just trying to remember the syntax for using lineinput with a file opened for input
if someone could post an example or the correct syntax it would be great
thanks everyone
Printable View
Hey every one my help is not installed on the pc im using at the mo and i am just trying to remember the syntax for using lineinput with a file opened for input
if someone could post an example or the correct syntax it would be great
thanks everyone
try this
Open "location" For (Input/output) As #filenumber
Line Input #FileNumber, varname
Write #FileNumber, [outputlist]
Input #FileNumber, varname
[CODE]
Open FileName For Input As #FileNumber
'Open the file
Do While Not EOF(FileNumber)
'Loop through line by line until
'The End Of File is reached
Input #FileNumber, StrFilesText
Loop
Quote:
Originally posted by Diab
[CODE]
Open FileName For Input As #FileNumber
'Open the file
Do While Not EOF(FileNumber)
'Loop through line by line until
'The End Of File is reached
Input #FileNumber, StrFilesText
Loop
You should use Line Input instead of just Input.