Jump to content
  • Advertisement
Sign in to follow this  
Nanook

end-of-file?

This topic is 4419 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hmm.. in my book theres an example program that tells the user to enter homework grades followed by end-of-file.. what does it mean by end-of-file?

Share this post


Link to post
Share on other sites
Advertisement
"End of file" is a character. In the command prompt in Windows, you can enter "end of file" by pressing CTRL+Z and pressing enter.

Share this post


Link to post
Share on other sites
Please be aware that when you read a file, it is not terminated by "End Of File". Instead the file functions detect that the end of the file has been reached and signal so accordingly. Here CTRL-Z (or CTRL-D on *nix) is a character that tells the computer to close the file associated with the interactive session it is entered at. The character isn't actually inserted in the file.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!