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

Name

deklarier_en_Usgabedatei()

Examples
schribt_id_Usganbedatei output;

Programmteil wo_am_afang_gmacht_wird() bitte
  // Create a new file in the sketch directory
  output = deklarier_en_Usgabedatei("positions.txt"); 
danke

Programmteil wo_immerwider_gmacht_wird() bitte
  Punkt(MuusX, MuusY);
  output.schrib_uf_e_neui_Linie(MuusX + "t" + MuusY); // Write the coordinate to the file
danke

Programmteil Taschte_truckt() bitte
  output.flutsch(); // Writes the remaining data to the file
  output.schlues(); // Finishes the file
  stop_dae_teil(); // Stops the program
danke
Description Creates a neus file in the sketch folder, and a schribt_id_Usganbedatei object to write to it. For the file to be made correctly, it should be flushed and must be closed with its flush() and close() methods (see above example).

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
deklarier_en_Usgabedatei(filename)
Parameters
filename Name of the file to be created
Usage Application
Related schribt_id_Usganbedatei
createReader
Stefan Baltensperger 2009

Creative Commons License