Use StreamWriter class (System.IO.StreamWr iter) for writing data to a text file. Pass file name along with full path (location) into constructor when creating StreamWriter' s object.
StreamWriter _writer = new StreamWriter( "C:\\Test. txt");
I don't know exactly how to write data to text file in specific or random locations. Perhaps you can find a solution by googling it or may be you have to write customized methods for doing this. For example, as you said "....i want to write any text on a text file at any location giving its column and row value or coordinates or their exact cursor position...". Seems that you have to insert your desired data/text in middle of existing text in a file. May be you can read the content of file first, then insert your desired string or data using String class and then rewrite data to file. Do let us know if you find any other yet effective and optimized solution for this. I will post if I find any.
Thanks.