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

#1 2010-01-27 11:18:59

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Lists.

I'm just wondering, how does importing/exporting lists work?

For example, if you import a file, how will the list decide where the file splits to create the different parts.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#2 2010-01-27 11:50:31

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Lists.

Import to list takes text out of the file, and each line is inserted on its place into the list, so line 1 would be list element 1, 2 will be 2 and so on.

Exporting simply takes a list and saves it as a text file.


Converting my Scratch projects to Python!

Offline

 

#3 2010-01-27 12:15:22

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Lists.

Yep.

It works like this:

YOUR TEXT FILE! wrote:

Item 1 of list.
Item 2 of list
Item 3 of list
Blablabla
And so on.
Item 6, ftw

Last edited by RHY3756547 (2010-01-27 12:15:37)

Offline

 

Board footer