( begin auto-generated from createReader.xml ) 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 an
(String filename)
| 6908 | * @see PrintWriter |
| 6909 | */ |
| 6910 | public BufferedReader createReader(String filename) { |
| 6911 | InputStream is = createInput(filename); |
| 6912 | if (is == null) { |
| 6913 | System.err.println("The file \"" + filename + "\" " + |
| 6914 | "is missing or inaccessible, make sure " + |
| 6915 | "the URL is valid or that the file has been " + |
| 6916 | "added to your sketch and is readable."); |
| 6917 | return null; |
| 6918 | } |
| 6919 | return createReader(is); |
| 6920 | } |
| 6921 | |
| 6922 | |
| 6923 | /** |
no test coverage detected