PtokaX forum

Development Section => Your Developing Problems => Topic started by: nErBoS on 12 March, 2004, 02:58:29

Title: Access...
Post by: nErBoS on 12 March, 2004, 02:58:29
Hi,

A dumb question :p

How can i get access to the files in ptokax folder for example.

Normaly when i do give a rote in a scritp to read or write the rote start script folder. how can i call the ptokxa foler for example ??

Best regards, nErBoS
Title:
Post by: Stravides on 12 March, 2004, 10:15:09
There are no Dumb questions only sarcastic answers....

You can access that dir by using syntax .. to go up a dir structure, (same as dos really)

configfile   = "../data.cfg"

where .. is the dir above Scripts, and ../.. is the one above that, so in order to read the Docs dir in ptokax, you can use
configfile      = "../docs/commands_note.txt"

hope this helps :)
Title:
Post by: nErBoS on 12 March, 2004, 14:42:08
Hi,

Thakns for the explanion Stravides :)

Best regards, nErBoS