// ファイルをテキスト書き込みモードで開く int fileID = open("world.txt", "w"); // ファイルに書き込む write(fileID, "Hello world !"); // ファイルを閉じる close(fileID);