Hi :
I have a problem about Module savetofile .When I connected to the real IRC5 , I use the Module function of SaveToFile to upload The Module to PC .But The alarm happened, that is “General file handing error” , I test successful in the virtual IRC5 use RS,But not in the real IRC5
My program like this:
wModule = GudData.mTasks[wTaskDeep].GetModule(TvProgram.SelectedNode.Text);
if (wModule.IsSystem == false)
{
if (File.Exists(@“C:ABB” + wModule.Name + “.mod”))
File.Delete(@“C:ABB” + wModule.Name + “.mod”);
wModule.SaveToFile(wPath);
Stream s = new FileStream(@“C:ABB” + wModule.Name + “.mod”, FileMode.Open);
byte b = new byte[s.Length];
s.Read(b, 0, (int)s.Length);
s.Close();
string wPrograms = Encoding.Default.GetString(b);
RTProgram.Text = wPrograms;
}
Please help me or give me some sample code.
My E-mail is Martin-jie.zhang@cn.abb.com
Thanks sincerely