Results 1 to 13 of 13

Thread: file reading problem

  1. #1

    Thread Starter
    Addicted Member TheSarlacc's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere close
    Posts
    185

    file reading problem

    Im sort of new to C and C++, so just bear with me. ive got a program that opens a 30MB or so file, and i loop through it character by character. but for some reason, the eof flag (using ifstream) sets to true after im only about 25% through the file.. is there something i should know about when opening large files? thanks for any help... TheSarlacc.
    Get Quoted:

    "If Shane Warne had given his mobile phone to Russell Crowe, neither of them would be in trouble."
    "She has more troubles than a centipede with its legs crossed."
    "For every action, there is an equal and opposite Government program."


  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Post code!!!

    How do you expect us to understand your problem if you don't post the code?

  3. #3

    Thread Starter
    Addicted Member TheSarlacc's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere close
    Posts
    185
    the code is attached below. its a personal encryption program.
    Attached Files Attached Files
    Get Quoted:

    "If Shane Warne had given his mobile phone to Russell Crowe, neither of them would be in trouble."
    "She has more troubles than a centipede with its legs crossed."
    "For every action, there is an equal and opposite Government program."


  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    To get more responses , post in C\C++ not in C# FORUM.
    Last edited by Pirate; Sep 29th, 2003 at 04:30 AM.

  5. #5

    Thread Starter
    Addicted Member TheSarlacc's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere close
    Posts
    185
    To get more responses , post in C\C++ not in C# FORUM.
    The things people post to get their count up eh...
    Get Quoted:

    "If Shane Warne had given his mobile phone to Russell Crowe, neither of them would be in trouble."
    "She has more troubles than a centipede with its legs crossed."
    "For every action, there is an equal and opposite Government program."


  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by TheSarlacc
    The things people post to get their count up eh...
    And the most stupidest thing , people do here is posting C/C++ questions in C#.NET forum or vice versa .

  7. #7
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Pirate
    And the most stupidest thing , people do here is posting C/C++ questions in C#.NET forum or vice versa .
    I know this thread is old, but I just wanted to point out that the above post makes no sense, and my post count just increased by one.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by The Hobo
    I know this thread is old, but I just wanted to point out that the above post makes no sense, and my post count just increased by one.
    Do you mean my post ??

  9. #9
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Pirate
    Do you mean my post ??
    Uh, yeah. It makes absolutely no sense. "most stupidest" "people do here is posting"

    Those pieces make no sense, grammatically or otherwise.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  10. #10
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by The Hobo
    Uh, yeah. It makes absolutely no sense. "most stupidest" "people do here is posting"

    Those pieces make no sense, grammatically or otherwise.
    Thanks for checking my ****ed grammar . This proves that english is not my first lang and I know I make a lot of mistakes of all kinds , but I've never blamed myself before and will never do . . I don't need more than the english I speak now .

  11. #11
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Pirate
    Thanks for checking my ****ed grammar . This proves that english is not my first lang and I know I make a lot of mistakes of all kinds , but I've never blamed myself before and will never do . . I don't need more than the english I speak now .
    Yeah, but...you have to admit...that particular post wasn't even close to making sense...but you're crystal clear now!
    My evil laugh has a squeak in it.

    kristopherwilson.com

  12. #12
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by The Hobo
    Yeah, but...you have to admit...that particular post wasn't even close to making sense...but you're crystal clear now!
    I think , these posts solved the mystery of your post count .

  13. #13
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Pirate
    I think , these posts solved the mystery of your post count .
    Double to you, too.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width