I just want to know, is there any possibility to set the cursor's position inside a text file, I open the Text file using this code:
if (File.Exists(file))
{
Process.Start(file);//file is a string that contain the file path
}
As you can see the opened file is another process, if there is another way to open file using C#, a way that can provide me with possibility to set the cursor position inside the file.
For example:
Opening the file at the 20th line, or the 200th char. I want to open files that have .java extension, so I want to use the default program to handle my file.