Method for initialization of file. Create one if it doesn't already exist.