File reader and writer without all those exceptions (in Java)