public static void moviesToFile(String infilename, String outfilename) {
		File file = new File(outfilename);
		List<Movie> list = readData(infilename);
		FileWriter fw = null;
		try {
			fw = new FileWriter(file);
			for (Movie m : list) {
				fw.append(m.toString());
			}
			fw.flush();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (fw != null) {
				try {
					fw.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}