When using
where does the text.txt file have to be located in order for it to be read?Code:ifstream a_file("text.txt");
When using
where does the text.txt file have to be located in order for it to be read?Code:ifstream a_file("text.txt");
Directory of which the program is.
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."
c9915ec6c1f3b876ddf38514adbb94f0
>Directory of which the program is.
I always thought it was the directory from which you are running the program.
It is the current working directory, which might be the directory the exe resides in, or it might be the directory from which you run the program, or it might be neither.
What element determines working directory? (in Windows) And how can we change it in our program? Is there any API function?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
>>Is there any API function?<<
SetCurrentDirectory and GetCurrentDirectory.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Why there is no <cdirect>?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
direct.h is not a standard C header, so it doesn't get updated to cdirect by the standard C++ library.
So what is it?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
it stays <direct.h>
that's if your compiler has it
Join is in our Unofficial Cprog IRC channel
Server: irc.phoenixradio.org
Channel: #Tech
Team Cprog Folding@Home: Team #43476
Download it Here
Detailed Stats Here
More Detailed Stats
52 Members so far, are YOU a member?
Current team score: 1223226 (ranked 374 of 45152)
The CBoard team is doing better than 99.16% of the other teams
Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)
Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT