File.ReadAllText, WriteAllText, ReadAllLines, WriteAllLines, etc. (kirillosenkov.blogspot.com)
submitted by
KirillOsenkov(565) 1 year, 10 months ago
I found that a lot of people still use StreamReader/StreamWriter for simple file access.
You can replace
using... StreamReader... ReadToEnd...
with a simple call to File.ReadAllText
|
category: Tips & Tricks
|
Views: 121
tags:
Tips C# another
Everyones tags:
Your Tags: