Ok so i want to be able to read a text document that has a different extension like an open office document, it has the extension .odt or something like that. When i try to open it i just get crazy looking characters, so what do i need to do to view the document properly? I wrote this program to display txt documents in the cmd window and it works, bt what will i need to change to get it to view other file types?
Open File is a program that will display the text of any text file
with the extension .txt in the cmd window.
cout << "What file do you want to open?" << endl;
cout << "The file you want to open must be typed in EXACTLY as it" << endl;
cout << "appears on your computer; for example: document.txt\n" << endl;
cout << "\n";
cout << "Failed to open" << endl;
cout << storeText << endl;