Java simple file reader to basic output