Add function to replace files in FileReader