hi,
i have some values in a notepad (.dat file). i want to store the values one by one in an variable. i dont know how to read the file and store the vaues.
can u help plz...
sidd.
0
Light Poster
Recommended Answers
Jump to PostHi Sidd. welcome here!
Try this:using (StreamReader sr = new StreamReader ("myfile.dat")) { string s = sr.ReadLine(); //etc. }
All 3 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Diamonddrake
397
Master Poster
sanch01r
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.