int file = open("utf8.txt", "w", "UTF-8"); write(file, "こんにちは ! "); close(file);