farkwit
08-31-2000, 09:17 PM
Is there any way to set the position to read from before using the:
<HTML>
<R>Input (chars, #FileNumber) </R>
</HTML>
to read in the characters from a sequential file?
anhmytran
09-01-2000, 12:29 AM
To work with sequential file, use Open and Input statement:
Open "pathfilename" For Input As #1
Input #1, FirstField, SndField, ThField, etcField
When you get your field read, you may use Left(), Mid() and Right() functions to extract any characters you want.
Do not bother to invent a more complicate way to do the job that is originally simple.
AnhMy_Tran
BillSoo
09-01-2000, 12:29 PM
Try the Seek function/statement
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
roger
09-01-2000, 12:52 PM
Hi, I have a related question.
How do i write at the end of a sequential file. Meaning: go to end of file, then write the new data.
I'd appreciate your help.
Thanks
Roger
"Great Ideas need Landing Gears as well as Wings"
BillSoo
09-01-2000, 01:15 PM
Open the file in Append mode, eg.
Open filename$ for Append as #dest%
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder