Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
整数をファイルに書き込むための textIO 署名の出力はありますか? output はベクトルのみを書き込み、outputsstring は部分文字列を書き込み、output1 は文字のみを書き込みます。ベクトルを使用しないことに関する私の問題は、出力ファイルの行に各整数を書き込む必要があることです。
私はSMLで苦労しています。
ありがとうございました。
int を文字列としてファイルに書き込むには、 を使用して文字列に変換し、Int.toStringその文字列をファイルに書き込みます。
Int.toString
数値をバイトとしてファイルに書き込むには、TextIO の代わりに BinIO を使用します。名前が示すように、TextIO はバイナリ データではなくテキストを処理するためのものです。