Okay I created the file on the heap now.
I don't understand the next steps, can you give me an example please?