ファイルに文字列を書き込む
mputstr(str [, fd]);
スカラー: mopen
関数により返されたファイル記述子.
-1
は直近にオープンされたファイルを意味します.
デフォルト値は-1
です.
文字列.
mputstr
関数により文字列str
を
バイナリファイルに書き込むことが可能です.
this_file = pathconvert(TMPDIR+"/mputstr.txt", %F); fd = mopen(this_file, "wt"); mputstr("Scilab", fd); mclose(fd); mgetl(this_file) // Scilab | ![]() | ![]() |