在用mono做数据库管理信息系统时,从文件中读取输入到控制台是正确的,但是如果把读取的内容做一个函数调用,输入到窗口中的textbox中就会有这样的异常

在用mono做数据库管理信息系统时,从文件中读取输入到控制台是正确的,但是如果把读取的内容做一个函数调用,输入到窗口中的textbox中就会有这样的错误
An IO exception has been thrown!
System.IO.IOException: Sharing violation on path /home/skdk/BJFS0010.12O
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode)
  at Maticsoft.DAL.DbHelperMySQL.FileStream (System.String& filepath, Int32 startchar, Int32 charlength) [0x0001b] in /home/skdk/桌面/sdcors/DAL/DbHelperMySQL.cs:138 

以下是函数和调用函数

       public static string  FileStream(string filepath, int startchar,int charlength)
{
byte[] byData = new byte[1000];
char[] charData = new char[1000];
try{
FileStream aFile=new FileStream(filepath ,FileMode.Open);
aFile.Seek(startchar,SeekOrigin.Begin);
aFile.Read(byData,0,charlength);
}
catch(IOException e) {
Console.WriteLine ("An IO exception has been thrown!");
Console.WriteLine (e.ToString ());
Console.ReadKey ();
//return;
}
Decoder d = Encoding.UTF8.GetDecoder ();
d.GetChars (byData, 0, byData.Length, charData, 0);
   string ss = charData.ToString ();
    return ss;




protected void OnFcbtnaddfileSelectionChanged (object sender, EventArgs e)
{
string filepath = "/home/skdk/BJFS0010.12O";
string str= Maticsoft.DAL.DbHelperMySQL.FileStream (filepath,8, 8);
etyAddCORSBH.Text = str;
                }
这是为什么啊,求各位大神指教啊!
------解决思路----------------------
string ss = charData.ToString ();
因为这里用错了呗
字符数组转字符串
要么自己拼接,要么用函数转,直接ToString (),那是把数组类型名称转字符串了