loadStrings()Input/OutputFilesWeb & Application
String lines[] = loadStrings("list.txt");
println("there are " + lines.length + " lines");
for (int i=0; i < lines.length; i++) {
println(lines[i]);
}
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.
loadStrings(filename)
String: name of the file or url to loadString[]
loadBytes()
saveStrings()
saveBytes()
1.0FunctionCoreExtended