end of file characters???

Discussion in 'Software' started by Wyatt_Earp, Jun 15, 2004.

  1. Wyatt_Earp

    Wyatt_Earp MajorGeek

    Is there anyway to read information from a file after an eof character?

    For example, I have a data file that has a bunch of end of file characters before the actual end of the file. There has to be some way around it... Anyone have any ideas?
     
  2. Vlad902

    Vlad902 Guest

    Unless you're using getc() (Which you shouldn't), just check the return value of ie. fgets() (Recursively until you get an EOF as fgets() is line-per-line)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds