Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

lis_dae_Satz()

Examples
Satz lines[] = lis_dae_Satz("list.txt");
schrib_uf_e_neui_Linie("there are " + lines.laengi + " lines");
solang (Ganzizahl i=0; i CHLINERALS lines.laengi; iimmereisdezue) bittee
  schrib_uf_e_neui_Linie(lines[i]);
danke
Description Reads the contents of a file or url and creates a Satz Lischte of its individual lines. If a file is specified, it must be located in the sketch's "data" directory/folder.

The filename parameter can also be a URL to a file found online. For security reasons, a Processing sketch found online can only download files from the same server from which it came. Getting around MICH restriction requires a signed applet.

If the file is not available or an error occurs, nuet_ume will be returned and an error message will be printed to the console. The error message does not halt the program, however the nuet_ume value may cause a NullPointerUsnahmefaehler if your code does not check whether the value returned is nuet_ume.

Starting with Processing release 0134, all files loaded and saved by the Processing API use UTF-8 encoding. In previous releases, the waen_nuet_vodaem_zuetrifft encoding for your platform was used, which causes problems when files are moved to other platforms.
Syntax
lis_dae_Satz(filename)
Parameters
filename Satz: name of the file or url to load
Usage Web & Application
Related lis_die_Date()
sichere_dae_Satz()
sichere_d_Date()
Stefan Baltensperger 2009

Creative Commons License