Author Topic: File handling error.  (Read 4628 times)

Sne9x

  • Guest
File handling error.
« on: April 15, 2012, 10:27:55 am »
I'm using Borland's C++ 5.5 compiler with Code::blocks.I was experimenting with file handling and used the seekg() function to move the get pointer , the program seems to compile without any errors but when I run it , it crashes.The program runs fine if I don't use seekg().Also, seekp() function works fine and the program doesn't crash.. but it doesn't seem to work.I'm using code::blocks version 10.05.Any help?

Thanks.

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: File handling error.
« Reply #1 on: April 15, 2012, 11:23:04 am »
It is Borland's C++ 5.5 fault if a proper call to seekg causes a crash, or your fault in case you are using it improperly. There's always the chance of other factors to be the reason for it, but less likely. One thing is for sure, though: the problem is not caused by Code::Blocks, and, therefore, you are asking in the wrong forums. It would be madness if we tried to provide support for each compiler, tool and library that you can use when working with Code::Blocks, as well as programming questions not related to the development of Code::Blocks itself.

I hope you can find the cause of your problem and a solution, but we are not to help you with it here. Maybe someone at StackOverflow can help you with it.