• Where is the base direcory?
    4 replies, posted
Say I did [CODE]file.Write("poop.txt","Some data")[/CODE] Where would that file actually be created/exist
[QUOTE=0V3RR1D3;47508003]Say I did [CODE]file.Write("poop.txt","Some data")[/CODE] Where would that file actually be created/exist[/QUOTE] garrysmod/data
[QUOTE=mijyuoon;47508009]garrysmod/data[/QUOTE] Does create the file if it does not exist, Because I tried writing to it and no errors were thrown but the file is not there?
[QUOTE=0V3RR1D3;47508143]Does create the file if it does not exist, Because I tried writing to it and no errors were thrown but the file is not there?[/QUOTE] It overwrites it. [url]http://wiki.garrysmod.com/page/file/Write[/url] edit: just to be certain you aren't trying to do it clientside and looking in server folder or vice versa?
[QUOTE=Busan1;47508197]It overwrites it. [url]http://wiki.garrysmod.com/page/file/Write[/url] edit: just to be certain you aren't trying to do it clientside and looking in server folder or vice versa?[/QUOTE] Im on a sinlge player game, And i am running it serverside, So would it not be in my garrysmod/data folder? If not then where would it be? My eyes are getting worse, Jesus. I missed out the .txt in my code.... Thanks for the help guys...
Sorry, you need to Log In to post a reply to this thread.