public static MegaFlowFrame LoadFrameNetCDF(string filename) { MegaFlowFrame flow = null; if (File.Exists(filename)) { flow = ScriptableObject.CreateInstance <MegaFlowFrame>(); flow.Init(); LoadNetCDF(flow, filename); } return(flow); }
public static MegaFlowFrame LoadFrame(string filename) { MegaFlowFrame flow = null; //Debug.Log("FGA file " + filename); if (File.Exists(filename)) { flow = ScriptableObject.CreateInstance <MegaFlowFrame>(); flow.Init(); LoadFGA(flow, filename); } return(flow); }
static public void Load(MegaFlowFrame flow, string filename) { FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read, System.IO.FileShare.Read); BinaryReader br = new BinaryReader(fs); if (br != null) { flow.Init(); Parse(flow, br); br.Close(); } fs.Close(); }
static public void Load(MegaFlowFrame flow, string filename) { FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read, System.IO.FileShare.Read); BinaryReader br = new BinaryReader(fs); if ( br != null ) { flow.Init(); Parse(flow, br); br.Close(); } fs.Close(); }