@@ -0,0 +1,1922 @@
+/**%0A *  wrongPowder is developed by wrong-entertainment & powder%0A *%0A *%0A *  Copyright 2011 Paul Vollmer & Tim Pulver%0A *  paulvollmer.net%0A *  vollmerpaul@yahoo.de%0A *  timpulver.de%0A *  pulver.tim@googlemail.com%0A * %0A *  This file is part of wrongPowder library.%0A *%0A *  wrongPowder is distributed in the hope that it will be useful,%0A *  but WITHOUT ANY WARRANTY; without even the implied warranty of%0A *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A *  GNU Lesser General Public License for more details.%0A *  %0A *  You should have received a copy of the GNU Lesser General Public License%0A *  along with wrongPowder. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A * %0A *  @author%09%09##author##%0A *  @modified%09##date##%0A *  @version%09##version##%0A */%0A%0Apackage wrongPowder.io;%0A%0Aimport java.io.BufferedReader;%0A%0Aimport processing.core.PApplet;%0Aimport wrongPowder.io.Log;%0A%0A%0A%0A%0A%0A/**%0A * Reader%0A * %0A * @example reader_basic %0A */%0Apublic class Reader %7B%0A%09%0A%09PApplet p5;%0A%09%0A%09// Logger Variable.%0A%09Log log = new Log();%0A%09%0A%09%0A%09%0A%09%0A%09/**%0A%09 * A Constructor, usually called in the setup() method in your sketch to%0A%09 * initialize and start the library.%0A%09 * %0A%09 * @example log_basic%0A%09 */%0A%09public Reader() %7B%7D%0A%09%0A%09/**%0A%09 * A Constructor, usually called in the setup() method in your sketch to%0A%09 * initialize and start the library.%0A%09 * %0A%09 * @example reader_basic%0A%09 * @param fileName%0A%09 */%0A%09public Reader(String fileName) %7B%0A%09%09init(fileName);%0A%09%7D%0A%09%0A%09%0A%09%0A%09%0A%09/**%0A%09 * Initialize  filae.%0A%09 * %0A%09 * @param path File path.%0A%09 */%0A%09public String read(String path) %7B%0A%09%09String temp = %22%22;%0A%09%09%0A%09%09BufferedReader reader = p5.createReader(path);%0A%09%09%0A%09%09try %7B%0A%09%09%09String line;%0A%09%09%09// save each line to sourcecode variable%0A%09%09%09while ((line = reader.readLine()) != null) %7B%0A%09%09%09    temp = temp+line;%0A%09%09%09    //System.out.println(line);%0A%09%09%09%7D%0A%09%09%09%0A%09%09%7D%0A%09%09catch (Exception e) %7B%0A%09%09%09//e.printStackTrace(); %0A%09%09%09//System.err.println(word+%22 No wordtype available %22);%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%09return temp;%0A%09%7D%0A%0A%0A%7D

Create Reader class