seek temporary file to 0 before returning it from "open" to allow reading it immediately without the user having to reset it himself