I am trying to open a text file one specific text file on my drive and I do not want to include the textbox or look/browse for a file to open. I just want it to open the text file specified on the disk drive only automatically without passing through the textbox, upon clicking a button a specific text file in the drive should open automatically
Something like this below:
private void button1_Click(object sender, EventArgs e)
{
c:\users\Dickson\Documents\oracle.txt;//
}
I want it to open this file specified here whenever I click the button.
If you want to open the txt file using notepad or any other default program, you can do:
If you want to read the file in the code, you can do: