www.abhisheksur.com
Mark this as answer, if it is..... With regards Nishithraj Narayanan
private void writeSchema() { try { FileStream fsOutput = new FileStream(txtCSVFolderPath.Text+"\\schema.ini",Fi leMode.Create, FileAccess.Write); StreamWriter srOutput = new StreamWriter (fsOutput); string s1,s2,s3,s4,s5; s1="["+strCSVFile+"]"; s2="ColNameHeader="+bolColName.ToString(); s3="Format="+strFormat; s4="MaxScanRows=25"; s5="CharacterSet=OEM"; srOutput.WriteLine(s1.ToString()+'\n'+s2.ToString( )+'\n'+s3.ToString()+'\n'+s4.ToString()+'\n'+s5.To String()); srOutput.Close (); fsOutput.Close (); } catch(Exception ex) { MessageBox.Show(ex.Message); } finally {}
Thanks SagarP http://www.emanonsolutions.net http://emanonsolutions.blogspot.com/
Login to post response