Computer Science Canada assistance with writing to file |
Author: | Spider-Man [ Wed Jan 16, 2008 8:09 pm ] |
Post subject: | assistance with writing to file |
i am making a game and i would like to record the player names and high score and record them to a file i can read the info from the file okay but when i put the two pieces of information to the file it seems that the two words are put into one how would i write it so that each piece (player name and score) could be written with a space in between open : inID, inName, put for i : 1 .. numberOfScore %displays all the high scores put : inID, highPlayers (i),(i want the space between the two here) highScores (i) Font.Draw (intstr (i) + "-" + highPlayers (i) + ": " + intstr (highScores (i)), maxx div 2 - (textSize * 6), (maxy - textSize * 2) - (i * textSize), font, red) end for close : inID |
Author: | Tony [ Wed Jan 16, 2008 8:55 pm ] | ||
Post subject: | RE:assistance with writing to file | ||
how about
|
Author: | Sean [ Wed Jan 16, 2008 8:58 pm ] | ||
Post subject: | Re: assistance with writing to file | ||
Tony gave the proper way, before I could, but the " ", just shows that you want a space, it's like a character, your putting it into the program, but not having anything appear. |