从 NodeJs 上的 C# 读取二进制文件?

Read binary file from C# on NodeJs?

是否可以使用 NodeJS 读取在 C# (Unity App) 上创建的二进制文件?

我正在使用 Node-Webkit,我从未使用过除 c# 以外的任何东西来 read/create 我的二进制文件来保存东西,是否有类型约定或我需要知道的密钥才能能够从 nodejs 的角度读取和构建二进制数据,以便我可以在界面中打印它?

public static void Save() {
        BinaryFormatter bf = new BinaryFormatter();
        FileStream file = File.Create (Application.persistentDataPath + "/savedGames.gd");
        bf.Serialize(file, SaveLoad.savedGames);
        file.Close();
}

这里是 fs.read()fs.open() 返回的文件描述符中提取前 100 个字节的示例:

var fs = require('fs');

fs.open('file.txt', 'r', function(error, fd) {
    if (error) {
        console.log(error.message);
        return;
    }
    var buffer = new Buffer(100);
    fs.read(fd, buffer, 0, 100, 0, function(err, num) {
        console.log(buffer.toString('utf-8', 0, num));
    });
});