This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-20 02:40:16

kalimystic303
New Scratcher
Registered: 2013-04-20
Posts: 1

Problem spliting string so can organise lists...

Hey

Im trying to use a .txt file to input data into correct lists.

I have 6 lists, so in each line in the .txt file the is 6 figure i.e. 1,2,3,4,5,6 all seperated by commas. I want the program to be useable for any data so cannot split the string but number index, but can quite get how i would split the string at the commas and then send each number to the correct list.

Offline

 

#2 2013-04-21 21:22:15

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Problem spliting string so can organise lists...

So you want to split the string "1,2,3,4,5,6" into 6 lists? If not, could you please provide an example that is more explanative?  smile

Offline

 

#3 2013-04-22 09:36:45

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Problem spliting string so can organise lists...

Scratch can't read files, and doesn't support multilines.  hmm
You might want to try Panther or Bingo, programs based on Scratch that support reading files line-by-line.

Offline

 

Board footer