Looking at other people's code I can see that I'm way out of the ballpark on this one. Did I miss something in the lessons?
package com.codegym.task.task18.task1820;
/*
Rounding numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String file1 = br.readLine();
String file2 = br.readLine();
br.close();
FileInputStream inStream = new FileInputStream(file1);
FileOutputStream outStream = new FileOutputStream(file2);
double d;
double r;
int i;
while(inStream.available() > 0){
d = inStream.read();
if(d != 32){
r = Math.round(d);
i = (int) r;
}
else{
i = (int) d;
}
outStream.write(i);
}
inStream.close();
outStream.close();
}
}