-
Moderators:Administrator, Global Moderator
- frankiebaby
- Global Moderator
- Posts:95
- Joined:Tue Apr 30, 2002 1:38 am
- Location:Pennsylvania
- Contact:
Re: Loading text files
Ok well, the easiest way, if you only want to display lines on screen, is to use
OPEN "file.fle" FOR INPUT AS #1
FOR
line input #1, TEXT$
PRINT TEXT$
NEXT
you can also try input# for space or comma delimited values.
in the online help:
LINE INPUT # - a file I/O statement that reads an entire line without delimiters from a sequential file to a string variable
Syntax
LINE INPUT #filenumber,stringvariable
_ filenumber is the number of an open sequential file
_ stringvariable will hold all characters from the
sequential file from the current position
in the file up to, but not including, the
next carriage-return-line-feed sequence. No
carriage-return-line-feed
sequences are ever input.
OPEN "file.fle" FOR INPUT AS #1
FOR
line input #1, TEXT$
PRINT TEXT$
NEXT
you can also try input# for space or comma delimited values.
in the online help:
LINE INPUT # - a file I/O statement that reads an entire line without delimiters from a sequential file to a string variable
Syntax
LINE INPUT #filenumber,stringvariable
_ filenumber is the number of an open sequential file
_ stringvariable will hold all characters from the
sequential file from the current position
in the file up to, but not including, the
next carriage-return-line-feed sequence. No
carriage-return-line-feed
sequences are ever input.