How can I get the name of a file I want to open?
I have a Matrix class and I overloaded the operator << for fstream writing and >> for fstream reading... Now, I use a custom data type .mrx for saving the matrix for reading and writing. Since this type is a text based data type, I can alter it using notepad... Now, I recently encountered a Software, Default Programs Editor, which helps bind custom programs to run a file type, and I tried creating a program for that type along with options of editing... (This may help me learn how notepad, etc work) But, I am unable to determine the file name during runtime so that I can open it for editing using open(). So, how can I get the name in a string for editing? Shall I ask the user to input the name? //But how does notepad does the same thing without inputs?