How can arbitrary characters be removed (not replaced by something) in a file?
#include <fstream>
int main()
{
std::fstream FileStream("MyFile.txt", ios_base::in | ios_base::out | ios_base::binary);
// For the sake of argument, MyFile.txt already has stuff in it.
FileStream.seekg(5);
FileStream.remove(); // Something like this.
}
You have two options: