public static void main(String[] args) {
		
		try {
			FileReader fr = new FileReader("prices_usd.txt");
			BufferedReader br = new BufferedReader(fr);
			
			FileWriter fw = new FileWriter("prices_euro.txt");
			PrintWriter pw = new PrintWriter(fw);
			while (true) {
				String s = br.readLine();
				
				if (s == null)
					break;
				
				int start = s.indexOf(" : ") + 3; // Our value starts after the ' : ', which is 3 char long
				int end = s.length();
				Double price_usd = Double.parseDouble(s.substring(start, end));
				Double price_eur = price_usd * factor;
				String s2 = s.substring(0, start);
				pw.print(s2 + String.format("%.2f", price_eur) + "\n");
				System.out.println(s2 + price_eur);
			}
			pw.close();
			br.close();
		} catch (Exception e) { e.printStackTrace(); }
	}