Check out example codes for "c# read file store in String". It will help you in understanding the concepts better.

Code Example 1

using System;
using System.IO;
 
public class Example
{
    public static void Main()
    {
        string fileName = @"C:\some\path\file.txt";
 
        string text = File.ReadAllText(fileName);
        Console.WriteLine(text);
    }
}
 

Learn ReactJs, React Native from akashmittal.com