public Line[] readFile(File file) {
		ArrayList<Line> lines = new ArrayList<Line>();
		try {
			if(!file.exists())
				file.createNewFile();
			BufferedReader in = new BufferedReader(new FileReader(file));
			String line;
			while ((line = in.readLine()) != null) {
				lines.add(new Line(line));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		return lines.toArray(new Line[0]);
	}