Basic file writing code in. How do I work this?

How to get the parameters ready?