On 26-Nov-97, Alex Walker wrote to All about How to find current dir?.
AW> Hi All How do you test for what the current directory the user is
AW> using? In a little program I'm writing I'd like write program
AW> output to a file in the current dir, what ever that might be. BTW
AW> I'm using BC++ 3.1. (But if the solution only works with later
AW> compilers I'd still like to know what it is.)
AFAIK, a file with no explicit path in his name would point to the current
directory... you may add a ".\" (DOS-like) or "./" (UNIX-like) prefix if
you want to.
Javier Kohen [The_Crusher] http://jkohen.base.org
.!. Don't repeat your parents mistakes: use a condom!
___ T-TAG 1.10 [*UnReg*]
--- Terminate 5.00/Pro
---------------
* Origin: The King of The Ring (4:900/748.3)
|