コード例 #1
0
ファイル: File.cs プロジェクト: squareinc/JSC-Cross-Compiler
        public static void WriteAllBytes(string path, byte[] value)
        {
            try
            {
                var stream = new global::java.io.RandomAccessFile(path, "rw");

                stream.setLength(0);
                stream.write((sbyte[])(object)value);

                stream.close();
            }
            catch
            {
                throw;
            }
        }
コード例 #2
0
ファイル: File.cs プロジェクト: exaphaser/JSC-Cross-Compiler
        public static void WriteAllBytes(string path, byte[] value)
        {

            try
            {
                var stream = new global::java.io.RandomAccessFile(path, "rw");

                stream.setLength(0);
                stream.write((sbyte[])(object)value);

                stream.close();
            }
            catch
            {
                throw;
            }
        }