T
Tanuki
Hi:
I have a problem regarding filenames in Visual C++.
I would like to read from files using relative filenames instead of
absolute filenames. I have tried using the following
fname = .\\<data directory>>\\<<file1>>
I have no problem when executing from within the IDE (i.e. pressing
CTRL+F5) but when I run the executable (i.e. <prog.exe> ), the file
cannot be found.
When I tried to change it to
fname = ../<data directory>>/<<file1>>
the executable can work but this time round, executing from the IDE
will render file not found problem.
I know this may be trivial to experts here but sincerely appreciate
any help. Thank you.
I have a problem regarding filenames in Visual C++.
I would like to read from files using relative filenames instead of
absolute filenames. I have tried using the following
fname = .\\<data directory>>\\<<file1>>
I have no problem when executing from within the IDE (i.e. pressing
CTRL+F5) but when I run the executable (i.e. <prog.exe> ), the file
cannot be found.
When I tried to change it to
fname = ../<data directory>>/<<file1>>
the executable can work but this time round, executing from the IDE
will render file not found problem.
I know this may be trivial to experts here but sincerely appreciate
any help. Thank you.