Create a new file or modify data in an existing file