Hey,
I'm suppose to create a text file containing records from the database. Each record must be separated by carriage return and line feed indicator which is fine.
It also asks that the file be ended with an EOF marker.
What is that??
Printable View
Hey,
I'm suppose to create a text file containing records from the database. Each record must be separated by carriage return and line feed indicator which is fine.
It also asks that the file be ended with an EOF marker.
What is that??
it is created automatically when you close the file. it is used when reading the file.
Unless they want you to manually create one, like
//EOF
An EOF marker is just a line in the file that indicates that you are at the end of the file.
Generally, it's the Ctrl+Z character, but I guess they want you to make your own in this case.
Traditional EOF is CHR(26) - CTRL/Z...Quote:
Originally posted by vbgladiator
Hey,
I'm suppose to create a text file containing records from the database. Each record must be separated by carriage return and line feed indicator which is fine.
It also asks that the file be ended with an EOF marker.
What is that??
I've not seen many ways to touch that "position" in a file in a language like VB - why are you doing this??
end-of-line indicate is up for grabs - CHR(10) or linefeed, CHR(13) + CHR(10) or carriage return-linefeed and on some hardware platforms I've seen CHR(13)+CHR(10)+CHR(0)...
why do things the hard way. surely the teacher will appreciate simplicity, especially if it works!