Writing to files

I have a problem writing data into a special position in a file, i have been searching for clues online but i cant find anything usefull :(. what i have learned this far only allows me to write at the beginnig or at the end of a file. I realy need help with this! it would be very nice if someone could explain a way to do this with an example code to clear things up!
closed account (Dy7SLyTq)
look up file io in cstdio.

edit: http://www.cplusplus.com/reference/cstdio/
Last edited on
Yeah take a look at the <stdio.h> library and the <fstream> library.

For specific parts of files you're looking for the seekg() and tellg() I think.
And there it is! thax a lot! <3
Topic archived. No new replies allowed.