[Klone-users] RE: Current Path
Mark Richards
mark.richards at massmicro.com
Wed Mar 5 23:40:21 EST 2008
Trung, Tran Minh wrote:
> Hi,
> I have a file user.db in the folder "/home/username/klone2/webapp/www/".
> If I set the path is "/home/username/klone2/webapp/www/user.txt", it
> read OK. But if I use getcwd() function, the path will be "/user.db", it
> read fail. So how can I get the path that I can read on different PC
> (with different username in the path "/home/username/klone2/webapp/www/"
> ?
Maybe I don't understand...
"." plus your pathname would make the directory / current.
i.e.: "./user.db"
More information about the klone-users
mailing list