public static ParseHeaderv1 ( string filePath ) : Headerv1 | ||
filePath | string | |
return | Headerv1 |
public static Headerv1 ParseHeaderv1(string filePath)
{
System.IO.FileStream fs = System.IO.File.OpenRead(filePath);
byte[] data = new byte[fs.Length];
fs.Read(data, 0, System.Convert.ToInt32(fs.Length));
fs.Close();
Headerv1 hdr = new Headerv1();
hdr._data = data;
Parser.ParseHeaderv1(ref hdr);
return hdr;
}
/// <summary>
Parser::ParseHeaderv1 ( Headerv1 &header ) : void |
public static Headerv1 ParseHeaderv1(string filePath) { System.IO.FileStream fs = System.IO.File.OpenRead(filePath); byte[] data = new byte[fs.Length]; fs.Read(data, 0, System.Convert.ToInt32(fs.Length)); fs.Close(); Headerv1 hdr = new Headerv1(); hdr._data = data; Parser.ParseHeaderv1(ref hdr); return hdr; }