storing files list in temporary file when we work with very large list of files