Page 1 of 1
File i/o js engine apparently not working?
Posted: Thu Jul 08, 2004 10:31 pm
by mrboris
Code: Select all
var mFile = new UOXCFile;
mFile.Open( "test.dat", "a" );
var name = new Array();
name[1]= mFile.ReadUntil( "s" );
i have a gump after that, that includes name[1] in the text but if clicked it just gives me the error 'you do not know how to use that item' but if those 4 lines are removed, the gump shows up.
i've always tried the Read( 10); and nothing showed up then as well.
this was all used in a onUse function.
Posted: Fri Jul 16, 2004 8:59 am
by Maarc
You're wanting to read, but you've actually opened the file for append (change "a" to "r").
Also, try changing the new statement to something like
Posted: Fri Jul 16, 2004 5:35 pm
by mrboris
tried all those changes, still get 'you can't think of a way to use that'
Posted: Wed Jul 21, 2004 8:08 pm
by mrboris
any new updates maarc?