PDA

View Full Version : C#: Block/select a text in a file


swinghead
03-31-2005, 07:39 AM
Hi folks,

Can any one tell me how i could block a text or perform a ^a (select all) task using some method.

I know that if you open an app and use the sendkey method u could literally do this on any of the opened apps.
But my case i need to open an existing file say FILE1.txt
FileStream fs = File.open (@"c:\FILE1.txt");
and then i need to select all the content present in this file . What do I do for this.

Please help.

Cheers.

anubis
03-31-2005, 07:42 AM
what do you mean by "select" ?