Can I set a default directory path to fstream in c++? If I say,
fstream fPointer("file1.txt",ios::in);
It should locate the file from, /home/[user]/[path]/file1.txt
It should automatically locate the directory ( /home/[user]/[path]/ ) Whenever I use fstream or ofstream.
Aucun commentaire:
Enregistrer un commentaire