i can input and output to a text file as long as the file is in the same directory as the c++ program. but i cant figure out how to input output to a file in a different directory i.e. I:\c++projects any thoughts. thanks
or you can go logical from your current directory (in case your folders can be configured by a user.)
In which case iirc, its "..\\" to go up a directory, or "..\\..\\outputFolder\\ouput.txt" to go up 2 levels, then down 1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.