I don't like using the variable name 'init' to hold a file. That seems confusing.  How about just doing:

  writeContent(getFile(...), content)

Or, declare a new variable with a name that is not confusing.