Recovered from cvs revision 2007-07-18 11:12:00
This commit is contained in:
@ -19,11 +19,29 @@ namespace asetestnet
|
||||
{
|
||||
ASE.Net.Awk awk = new ASE.Net.StdAwk();
|
||||
|
||||
awk.Open();
|
||||
awk.OpenFileHandler += new ASE.Net.Awk.OpenFile (OpenFile);
|
||||
awk.CloseFileHandler += CloseFile;
|
||||
|
||||
//awk.Open();
|
||||
awk.SourceInputStream = new System.IO.FileStream("t.awk", System.IO.FileMode.Open, System.IO.FileAccess.Read);
|
||||
awk.SourceOutputStream = new System.IO.FileStream("t.out", System.IO.FileMode.Create, System.IO.FileAccess.Write);
|
||||
|
||||
awk.Parse();
|
||||
awk.Run();
|
||||
}
|
||||
|
||||
private int OpenFile(ASE.Net.Awk.File file)
|
||||
{
|
||||
MessageBox.Show("OpenFile");
|
||||
file.Handle = "abc";
|
||||
return 1;
|
||||
}
|
||||
|
||||
private int CloseFile(ASE.Net.Awk.File file)
|
||||
{
|
||||
MessageBox.Show("CloseFile" + (string)file.Handle);
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user