|
2 registered members (TipmyPip, 1 invisible),
18,789
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: reading a text file within a resource?
[Re: Joa]
#111874
02/13/07 20:20
02/13/07 20:20
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
Copy the textfile from the resource to your gamefolder - with c_script.  Then you can read out the data. Edit: Look at: file_cpy (string destname, string srcname);
Last edited by fogman; 02/13/07 20:21.
no science involved
|
|
|
Re: reading a text file within a resource?
[Re: Joa]
#111876
02/13/07 22:04
02/13/07 22:04
|
Joined: Apr 2005
Posts: 4,506 Germany
fogman
Expert
|
Expert
Joined: Apr 2005
Posts: 4,506
Germany
|
Hum... this should work. Wait - have you added a wait(3) after file_copy? It might take some "ticks" to create the file. I haven´t tested this method, but somewhere jcl stated that this is a workaround for this kinds of files (e.g. if you want to read data out of them, play videos, etc...) For me it´s bedtime now, if you can´t get it to work, pm me. I´ll answer tomorrow.
no science involved
|
|
|
|
|
|