Subj : variable
To   : altere
From : Amcleod
Date : Thu Dec 28 2000 04:12 am

RE: variable
BY: altere to All on Thu Dec 28 2000 11:16 am

> set a_credit 10
> fwrite mod_file a_credit

It's been a looong time, but:

1) Doesn't FWRITE output the integer in BINARY?
2) On Little-endian (Intel-type) boxes, don't the low-order bytes come first?
3) With A_CREDIT set to "10" isn't that 0A 00 00 00  (in hex)?
4) Isn't that equivilent to a LINEFEED followed by three NULLS?
5) Didn't you say the file contained only a linefeed?

I'd check the BAJA documentation looking for a verb called "FPRINT" and see if
it did something different to "FWRITE" if I were you.


---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net