how do u fix unecpected end of file found???

This is a discussion on how do u fix unecpected end of file found??? within the C Programming forums, part of the General Programming Boards category; i keep getting an error saying unexpected end of file found, how do i fix that!!!!!!!!...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    22

    how do u fix unecpected end of file found???

    i keep getting an error saying
    unexpected end of file found, how do i fix that!!!!!!!!

  2. #2
    Registered User WayTooHigh's Avatar
    Join Date
    Aug 2001
    Posts
    101
    make sure you close all your curly braces and parentheses. and don't forget to check to make sure you have semicolons where you need them.
    Sometimes, the farthest point from the center is the center itself.

    Your life is your canvas, it's only as beautiful as you paint it.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Put a closing brace where you forgot.
    Code:
    int main ( void )
    {
      int i = 0;
      while ( i < 10 ) {
        i++;
      /* No closing brace, unexpected end of file */
      return 0;
    }
    -Prelude
    My best code is written with the delete key.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Ah, you beat me to it WayTooHigh.

    -Prelude
    My best code is written with the delete key.

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Stop reading past the end of the file.

    I'll take a wild guess and assume you're trying to read a specific file format. As such, I'll assume that given the header that the file format uses, it expects there to be more data then is currently available in the file.

    It's also possible that you're using encoded data and the checksum is incorrect. This is a common occurance when decoding .rar files (ie: you download a game or something from an newsgroup and when combining the files, one of them is corrupt).

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 12-06-2008, 02:43 PM
  2. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 02:30 PM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 04:44 PM
  4. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 09:39 AM
  5. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21