// Open the file in text writing mode int fileID = open("world.txt", "w"); // Write "Hello world!" to the file write(fileID, "Hello world!"); // Close the file close(fileID);