|
-
Nov 8th, 2004, 03:57 PM
#1
Thread Starter
Frenzied Member
EOF Marker
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??
Don't anthropomorphize computers -- they hate it
-
Nov 8th, 2004, 04:00 PM
#2
it is created automatically when you close the file. it is used when reading the file.
-
Nov 8th, 2004, 05:27 PM
#3
Frenzied Member
Unless they want you to manually create one, like
//EOF
-
Nov 8th, 2004, 07:41 PM
#4
Software Eng.
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.
-
Nov 8th, 2004, 09:48 PM
#5
Re: EOF Marker
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??
Traditional EOF is CHR(26) - CTRL/Z...
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)...
-
Nov 9th, 2004, 03:22 AM
#6
why do things the hard way. surely the teacher will appreciate simplicity, especially if it works!
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
|