|
-
Jul 1st, 2001, 02:33 AM
#1
Thread Starter
Fanatic Member
retrieve a line after using open file for input as??
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
-
Jul 1st, 2001, 03:47 AM
#2
try this
Open "location" For (Input/output) As #filenumber
Line Input #FileNumber, varname
Write #FileNumber, [outputlist]
Input #FileNumber, varname
-
Jul 1st, 2001, 03:49 AM
#3
Addicted Member
[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
-
Jul 1st, 2001, 08:48 PM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|