In said:
Thanks. Both versions worked. I have program files and data files in
two different directories at the same level. Is there a short form of
specifying it rather than giving the full directory path?
You can use relative paths. If your current working directory is the
parent directory of both the data directory and the program directory,
you can use something like: "data/file001.dat" and "prog/program1.exe".
Particularly useful in relative paths on certain systems (Unix and Windows
included) is the ".." thing which stands for the parent directory. In the
context of the previous example, assume that your current working
directory is prog and you want to specify the relative path of
file001.dat: "../data/file001.dat". You can use .. multiple times, to go
further backwards: "../../../foo/bar/baz.dat".
Dan