Results 1 to 6 of 6

Thread: EOF Marker

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    it is created automatically when you close the file. it is used when reading the file.

  3. #3
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    Unless they want you to manually create one, like

    //EOF

  4. #4
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286
    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.

  5. #5
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    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)...

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    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
  •  



Click Here to Expand Forum to Full Width