By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,327 Members | 2,661 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,327 IT Pros & Developers. It's quick & easy.

Writing File / EOF ?????

P: 4
when we finish writing a file...How and when EOF gets associated with it..??
if EOF is only -1 (and nothing else)
What will happen while reading another -1 (which is within the file)?
Aug 27 '10 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
EOF represents a numnber larger than the number of bytes in the file. EOF is used for positioning.

This has nothing to do with the value of a particular byte.
Aug 27 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.