Bufferedwriter/filewriter working