hiiiii all....
i am getting a stream was not readable exception when executing the following code:
string str =newwords.Value;
if (str != null)
{
FileStream fs = new FileStream(Server.MapPath("~/Dictionary_Tables/Custom_Dict.bin"), FileMode.Append);
BinaryWriter sr = new BinaryWriter(fs); // this statement is causing an exception
sr.Write(str);
sr.Close();
FileStream fs1 = new FileStream(Server.MapPath("~/Dictionary_Tables/Custom_Dict.bin"), FileMode.Append);
BinaryReader sr2 = new BinaryReader(fs1);
str = str+sr2.ReadString();
str = Regex.Replace(str, "\r\n", ";");
char[] sp = { ';', '\r', '\n' };
string[] elements = str.Split(sp, StringSplitOptions.RemoveEmptyEntries);
elements = elements.Disti ...
Go to the complete details ...