Creating a file using code generated for TV - Polymemo