How to create a file at runtime