file list generated using printwriter and bufferedreader