Check out example codes for "c# read all text from a file". It will help you in understanding the concepts better.

Code Example 1

using (StreamReader streamReader = new StreamReader(path_name, Encoding.UTF8))
{
  contents = streamReader.ReadToEnd();
}

Learn ReactJs, React Native from akashmittal.com