fstream question

using fstream how can you open a file outside of the directory your programs running in?
By listing the full location.

-Albatross
Just pass a relative or absolute path that your system understands. For example, on UNIX an absolute path begins with '/', while on Windows it begins with a letter and a colon. Remember than forward slashes are accepted everywhere, so, for example, "directory/file.ext" is always a valid relative path.
ok thanks, my problem was i was using a backwards slash
Never forget that backslashes are written as '\\'.
Topic archived. No new replies allowed.