Importing Lists

how do you import a list from a txt file? need this to do smth with a file i have

You can import the text file into snap, and it'll be put into a variable (as text). You can then use the (split [] by [[line] v]) block to turn it into a list.

i got you gimmie a min

import from file script pic

Ah, you need SciSnap! to enable that. Here it is:
evaluateCustomBlock script pic

it's already in both blocks?

I think a question we forgot to ask, are you trying to import the file qhile the project is running (e.g. pressing a button on the stage), or are you just wanting to import the list once, and save if in a variable?

another question that might be useful, what format is this file?

Well that still doesn't tell us anything. Is each line a value, are the values split by commas, etc.

It doesn't seem to be

I must've sent an older version of the block by accident
import from file script pic
Try this