Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
16
Reply
Displaying text file to Windows Application
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Marc
9y
981
1
Reply
I am trying to read a text file that is currently in my project resources and display it on my windows application pop up. This is what I got so far
private
void
MyWindow_Load(
object
sender,
EventArgs
e)
{
string
myTxt = System.IO.
File
.ReadAllText(
"myText.txt"
);
Console
.WriteLine(myTxt);
}
private
void
button1_Click(
object
sender,
EventArgs
e)
{
}
private
void
button2_Click(
object
sender,
EventArgs
e)
{
Environment
.Exit(1);
}
Post
Reset
Cancel
Answers (
16
)
Next Recommended Forum
Switch statement
C# database