I know by writing thisa file name Student_data.txt will store in C drive. But how do I store the file in the directory of the program run or current directory? Thanks in advanceCode:ofstream school_file ("C:\\Student_data.txt")
Printable View
I know by writing thisa file name Student_data.txt will store in C drive. But how do I store the file in the directory of the program run or current directory? Thanks in advanceCode:ofstream school_file ("C:\\Student_data.txt")
Remove the C:\\ part.
Thanks