| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### loadStrings()
Examples |  |
    String lines[] = loadStrings("list.txt");
    println("there are " + lines.length + " lines");
    for (int i=0; i < lines.length; i++) {
      println(lines[i]);
    }
Description |  | Reads the contents of a file or url and creates a String array of its individual lines. If a file is specified, it must be located in the sketch's "data" directory/folder.
Syntax |  |
    loadStrings(filename)
Parameters |  |
filename |  | String: name of the file or url to load
Returns |  | String[]
Usage |  | Web & Application
Related |  | loadStream() loadBytes() saveStrings() saveBytes()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |