on Oct 14th, 2013, 12:56pm, johnblack  wrote:| | IIf only takes in the PoneName$ variable and tends to make random workds out of my other variables (which are derived from random numbers. 
 | 
 | 
It's doing what it should, but you won't be able to read the (binary) numeric values in a text editor.  If you read the values back in from the file it will work fine:
 Code: A=OPENIN "PlayerAttribute"
 INPUT#A,PoneName$,PoneSkill%,PoneStrength%
 CLOSE#A 
If you specifically want to be able to read the numbers in something like WordPad or Word then you'll have to write them as strings:
 Code: A=OPENOUT "PlayerAttribute"
 PRINT#A,PoneName$,STR$(PoneSkill%),STR$(PoneStrength%)
 CLOSE#A 
Incidentally I don't recommend omitting the file extension, because a '.BBC' extension will be added automatically and the resulting file could easily be mistaken for a program.  Better to choose a more appropriate extension, e.g:
 Code: A=OPENOUT "PlayerAttribute.dat" 
Richard.