How Can I Open A file for reading and/or writing in C# ?
I don't mean using openfiledialog / savefiledialog .
I mean something Like C++ (non-visual C++).
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Roy S194 reputationPosted Jul 18, 2010, 12:33 PM EDT
http://www.csharp-station.com/HowTo/ReadWriteTextFile.aspx
Sam HobbsRank #107 · 20.5K reputationPosted Jul 18, 2010, 1:10 PM EDT
Majid KamaliRank #6,453 · 266 reputationPosted Jul 18, 2010, 2:38 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 18, 2010, 3:51 PM EDT
Majid KamaliRank #6,453 · 266 reputationPosted Jul 19, 2010, 5:19 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 19, 2010, 9:49 AM EDT
Jaish MathewsRank #225 · 11K reputationPosted Jul 19, 2010, 10:24 AM EDT
An old article in 1.1 version saying abt the basics of serialization with a good example. Many methods used her may be absolete. But you will get a clear idea about read/write objects in a file. http://www.c-sharpcorner.com/UploadFile/jaishmathews/ApplySerializationinaRealLifeSituation03252006092701AM/ApplySerializationinaRealLifeSituation.aspx?ArticleID=195aa9fd-3337-438f-a675-c4c83c7e75ae
Majid KamaliRank #6,453 · 266 reputationPosted Jul 20, 2010, 6:28 AM EDT
are these obligatory ?
What do they do ?
Roy S194 reputationPosted Jul 20, 2010, 6:34 AM EDT
http://msdn.microsoft.com/en-us/library/z0w1kczw.aspx