Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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);
        }