initialize a file