From Test-Scratch-Wiki

SandCastleIcon.png This article documents something which is not associated with Scratch, the Lifelong Kindergarten Group, or the Massachusetts Institute of Technology.

A Comma Separated Values file is a plaintext file that is used by spreadsheet programs such as Microsoft Office & LibreOffice Calc to share data and often end in a .txt or .csv file extension. For more information on .csv files, see this Wikipedia page.

Support for .CSV Files in Scratch

Shows what Scratch does when you try to import a well-formed .csv file into a list

Scratch offers limited support for CSV files, in that when you import a file into a List, if Scratch detects that it is a CSV file, it will ask you which column you want to import into a list. If you leave that field blank, it will import it just like a normal text file.

How to Read .CSV files in a Scratch Program

Since a .csv file is just plain text, it is possible, as this project shows, to read them into a scratch program and then use scripts to read and write specific values from them.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.