e): if data is given, it gets written out to the temp file
            immediately, and the file is closed again.)