下記のコードのようにテキストファイルを編集して保存することができますが、これはsystem.ioを使用せずに行うことができなければなりませんクロームアプリ。これを行う方法はありますか?クロムのアプリでJavaScriptを使用してテキストファイルにアクセスする
import System.IO;
var filePath = "data.txt";
function Start() {
if (!File.Exists(filePath)) {
CreateFile();
}
}
function CreateFile() {
var sw: StreamWriter = new StreamWriter(filePath);
sw.WriteLine("Hello World")
sw.Flush();
sw.Close();
print("Done");
}
あなたがhttps://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/text-editor見てきました? – mvermand
https://nodejs.org/api/fs.html node.jsを使用することができますfs – Grynets
いいえ、私はいませんでしたが、今からやっていきます。ありがとうございます。 – LegusX