Can we write an EOF character ourselves?
Most of the languages like C++ when writing into a file, put an EOF character even if we miss to write statements like : filestream.close However is there any way, we can put the EOF character according to our requirement, in C++, for an instance. Or any other method we may use apart from using the functions provided in C++. If you need to ask more of information then kindly do give a comment. Thanks in advance. EDIT: Thanks for your support but here's an addition to this question: What if, we want to trick the OS and place an EOF character in a file and write some data after the EOF so that