コード例 #1
0
ファイル: File.cs プロジェクト: Yanrishatum/UGif
 public static global::haxe.io.Bytes getBytes(string path)
 {
     global::sys.io.FileInput f   = global::sys.io.File.read(path, new global::haxe.lang.Null <bool>(true, true));
     global::haxe.io.Bytes    ret = f.readAll(default(global::haxe.lang.Null <int>));
     f.close();
     return(ret);
 }
コード例 #2
0
ファイル: File.cs プロジェクト: norigantz/adventofcode2020
        public static string getContent(string path)
        {
            global::sys.io.FileInput f = global::sys.io.File.read(path, new global::haxe.lang.Null <bool>(false, true));
            string ret = f.readAll(default(global::haxe.lang.Null <int>)).toString();

            f.close();
            return(ret);
        }