I'm trying to write a program to facilitate processing of a document at work. Ordinarily, this file is opened in notepad and scanned manually; the program would scan it instead, and output elsewhere.
The problem is, the input file has a .prt file type, despite functionally being a txt (and not a CAD file).
How can I get C++ to treat the file as if it were a .txt (or change the file type and overwrite the original input), ideally with fstream?