Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (dr_panther, Quad, AndrewAMD, 7th_zorro), 945 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
file_var_read doesnt function? #254386
03/02/09 22:04
03/02/09 22:04
Joined: Oct 2008
Posts: 112
N
Ness Offline OP
Member
Ness  Offline OP
Member
N

Joined: Oct 2008
Posts: 112
Welli tried the HELP of manual and here is the result:

Click to reveal..
var_nsave filehandle;
var zeitspeicher;

action test
{
player = me;

filehandle = file_open_write("myfile.txt");
file_var_write(filehandle,123);
file_close(filehandle);
filehandle = file_open_read("myfile.txt");
zeitspeicher = file_var_read(filehandle);
zeitspeicher = file_var_read(filehandle);
file_close(filehandle);

}

panel testnew
{
pos_x = 30;
pos_y = 30;
flags=refresh,visible,overlay,d3d;
digits(0,20,5,*,1,zeitspeicher);
}

function main()
{
level_load("testest.wmb");
}


I dont get any value zeitspeicher has everytime 0!
How do it can have zeitspeicher 123??

PS: Subquestion: How can i write string/integer in textfile like this:
test
test 2
...
...
I can do only this:
test test2 ... ...

greetings ness

Re: file_var_read doesnt function? [Re: Ness] #254434
03/03/09 12:45
03/03/09 12:45
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Originally Posted By: Ness
PS: Subquestion: How can i write string/integer in textfile like this:
test
test 2
...
...
I can do only this:
test test2 ... ...


Make it like this:

test/ntest2

And so on... smile


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1