Problems reading large text files using uipath

Currently, I’m trying to read a very large file (over 4000 pages) using Readalllines function but uipath is taking a long time (several hours) process file. Is there any other options, for me to read this file? Can it be read from disc?

Any input would be greatly appreciate it.
Thanks

Try

StreamReader sr = new StreamReader(file);
string strText = sr.ReadToEnd();
sr.Close();
sr.Dispose();

Can u just elaborate a little more?