#Is there to load a file from just the file name and not the whole path?
4 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
Set the working directory.
I am generalising terribly here, but the younger generation seem to not have a grasp on the command line interface.
If they did, then setting the working directory wouldn't sound so alien.
It's akin to
cd \Users\Zuto\Projects\FileLoader
Debug\FileLoader.exe
In the above example, \Users\Zuto\Projects\FileLoader becomes the active directory.
You launch your program from there using a relative path.
This program, when asked to open "data.txt" will look for that file in \Users\Zuto\Projects\FileLoader.