public static LogoDocument fromFile(File file)
		throws IOException{
		BufferedReader reader = new BufferedReader(new FileReader(file));
		
		LogoDocument document = new LogoDocument();
		for (String line = reader.readLine(); line != null;line = reader.readLine()){
			try {
				document.insertString(document.getLength(),line+"\r\n",new SimpleAttributeSet());
			} catch (BadLocationException e) {
				e.printStackTrace();
			}
		}
		document.file = file;
		document.dirty = false;
		reader.close();
		
		return document;
	}