المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Updating Text File



C# Programming
07-13-2009, 03:30 PM
Hi Forum,
I have to open a text file in c# and read few lines and then I need to update some lines in the middle of the file.

Let me tell you what am I doing. Here in my program I open a file and display it in a RTF control. I have provided one button to insert one selected character to recognize updation. Now if user clicks somewhere in the rtf control and click to that button, it should insert the selected character to that cursor position. This is same as we insert Emotion symbols here in this forum.
That character can be inserted anywhere in the file.
Please tell me how can I insert a character to a particular cursor position.

Thanks ......
Vishal Moharikar.