FileIO script updated

Script has been tested and is considered stable.