Login Register






scoreboard with text file? filter_list
Author
Message
RE: scoreboard with text file? #11
Print both key and content


Reply

RE: scoreboard with text file? #12
Print both key and content


Reply

RE: scoreboard with text file? #13
Hmmm, this sound like somebody's homework.

1) Setup a loop (for probably) to iterrate around the file.
2) Read the first line to a temporary variable (let's say key).
3) Read the next line to a tempoary variable (let's say content).
4) Assign key:content to the dictionary.
5) Repeat until there are no more lines.

Reply

RE: scoreboard with text file? #14
Hmmm, this sound like somebody's homework.

1) Setup a loop (for probably) to iterrate around the file.
2) Read the first line to a temporary variable (let's say key).
3) Read the next line to a tempoary variable (let's say content).
4) Assign key:content to the dictionary.
5) Repeat until there are no more lines.

Reply

RE: scoreboard with text file? #15
(12-05-2013, 04:41 PM)joeb12 Wrote: Hmmm, this sound like somebody's homework.

1) Setup a loop (for probably) to iterrate around the file.
2) Read the first line to a temporary variable (let's say key).
3) Read the next line to a tempoary variable (let's say content).
4) Assign key:content to the dictionary.
5) Repeat until there are no more lines.
not really homework just projects we are playing with
score.txt:
25000,name
10000,name
my teacher says:
make an array
read the content as score,name

sort the array
us for counter in range(1,11) :
do reading content like splitting blablabla

isue is prety much solved after working arround the teacher(s) idea which is almost the same as in here. XD
(This post was last modified: 12-05-2013, 08:14 PM by boby79simon.)
Calling me stupid won't mind me it only shows your immaturity -<3

[Image: 120x240.gif]

Reply

RE: scoreboard with text file? #16
(12-05-2013, 04:41 PM)joeb12 Wrote: Hmmm, this sound like somebody's homework.

1) Setup a loop (for probably) to iterrate around the file.
2) Read the first line to a temporary variable (let's say key).
3) Read the next line to a tempoary variable (let's say content).
4) Assign key:content to the dictionary.
5) Repeat until there are no more lines.
not really homework just projects we are playing with
score.txt:
25000,name
10000,name
my teacher says:
make an array
read the content as score,name

sort the array
us for counter in range(1,11) :
do reading content like splitting blablabla

isue is prety much solved after working arround the teacher(s) idea which is almost the same as in here. XD
(This post was last modified: 12-05-2013, 08:14 PM by boby79simon.)
Calling me stupid won't mind me it only shows your immaturity -<3

[Image: 120x240.gif]

Reply