I havn't delved into this much, but I thought that the EOF was a file system thing....a null byte 0x00 which signified the end of the file data? When you open the file, you never see the EOF marker. When the filesystem goes to get the file from disk, it knows it reached the EOF when it hits a 0x00. 0x00 is never used in any program or file, and if it's encountered will trigger an error about "premature EOF" or something similar. But thats just my understanding, I'm open to edification. :-)

If you cat 2 files together, only one EOF is placed at the end of the combined files, automatically.


I'm not really a human, but I play one on earth. flash japh

In reply to Re: Deleting EOF from a file by zentara
in thread Deleting EOF from a file by nsyed

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.