#Create the global buffered reader object
reader = createReader("positions.txt")
line = reader.readLine()
line = None
if (line == None):
#Stop reading, because of an error or the file is empty
#Split eace line on a tab.
positions = line.split("\t")
x = int(positions)
y = int(positions)
THIS EXAMPLE IS BROKEN
Creates a BufferedReader object that can be used to read files line-by-line as individual String objects. This is the complement to the createWriter() function.
Starting with Processing release 0134, all files loaded and saved by the Processing API use UTF-8 encoding. In previous releases, the default encoding for your platform was used, which causes problems when files are moved to other platforms.
|filename||Name of the file to be opened|
Updated on Fri Aug 16 21:51:57 2019.