@@ -0,0 +1,1467 @@
+package linprogMPC.helper;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0A%0Aimport simulation.SimulationStarter;%0A%0Aabstract public class FileManager %7B%0A%09%0A%09/**%0A%09 * Reads a file from the resource container of the project%0A%09 * %0A%09 * @param filename the name of the file to be read%0A%09 * @return a buffer with the data in the input file%0A%09 */%0A%09public static BufferedReader readFromResources(String filename) %7B%0A%09%09BufferedReader br = null;%0A%09%09try %7B%0A%09%09%09String source = %22resources/%22 + filename;%0A%09%09%09InputStream is = FileManager.class.getClassLoader().getResourceAsStream(source);%0A%09%09%09br = new BufferedReader(new InputStreamReader(is, %22UTF-8%22));%0A%09%09%7D catch (IOException e1) %7B%0A%09%09%09System.err.println(%22Error reading %22 + filename + %22 thrown at class ReadFileManager%22);%0A%09%09%09e1.printStackTrace();%0A%09%09%09SimulationStarter.stopSimulation();%0A%09%09%7D%0A%09%09return br;%0A%09%7D%0A%0A%09/**%0A%09 * Reads a file from location specified.%0A%09 * %0A%09 * @param location the absolute path to the file to be read%0A%09 * @return a buffer with the data in the file read%0A%09 */%0A%09public static BufferedReader readFromSource(String location) %7B%0A%09%09BufferedReader br = null;%0A%09%09try %7B%0A%09%09%09br = new BufferedReader(new FileReader(location));%0A%09%09%7D catch (FileNotFoundException e) %7B%0A%09%09%09System.err.println(%22Error reading %22 + location + %22 thrown at class ReadFileManager%22);%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09return br;%0A%09%7D%0A%0A%7D%0A

Add FileManager class