Geek Culture
Published in

Geek Culture

How to Write / Read Files in C#

Simple example: text

Among many, a super short way to write or read files in C# is to use the static methods from the File class.

Write

As an oversimplification, we can say that files are a bunch of bytes written on the disk, so to write information we need to convert it to bytes and flush them into…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store