![]() |
text files
I wondered on something, how do I load an text file
with like for exmaple: obj.loadvars("path"); and edit one member of the file? obj = {"foo", "bar"}; obj.savelines("path", 0); saves like all the members of the array into the file, but how to edit one single member? |
Use
obj.replace(index, replacewith) [I think] or to delete obj.delete(index) |
will that work on files like an .txt file in levels/blah/blah/?
I'll try it though :] |
Should do =D
|
darn, didn't work :[
|
Ohhh thats how to do it
PHP Code:
Quote:
|
Hm, paste what you're doing exactly? I'm sure it should work o_O
|
I tried
PHP Code:
but when I open it, its still "testing" when its suppose to be "test" but isn't obj.replace(index, string); for arrays? btw, anyone knows? |
Quote:
|
I found an method by searching for "savelines" :O
btw, Yen posted about this in that thread I found :] PHP Code:
HTML Code:
joinedclasses= |
Quote:
|
Quote:
|
Should do
player_money = temp.fileLoaded.player_money; player_money = "new test"; saveStuff? (I think...) |
| All times are GMT +2. The time now is 02:51 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.