I am trying to write to the beginning of a file.
The reason:
I want to make a form where board webmasters can use it to insert in
updates to a webpage without having to go directly into the web file
and start editing. The form must write to the beginning of the file so
that the update appears on the top of the file instead.
I was actually writing in PHP but see that they do not support it. So
I turned to C++. On About.com, the tutorial on C++ Lesson 12 says that
ios::ate is used to write anywhere in the file without truncating. So
i did a search on how I can manipulate that to the beginning of a file.
I could not find anything.
Is there anyone who can help solve this problem?