Script is getting stuck while converting the text data to array

Hello,

Using a simple script here that converted PDF data to a text. This executed separately and working fine. This text has 173 lines
Then, taking the text from the text file to an array using the vbscript PDFData.Split(Environment.NewLine.ToArray,StringSplitOptions.RemoveEmptyEntries)
and its getting stuck.
Any better way to get the line by line data from text file?
Why its taking long time to finish the execution? I am not sure how long it takes as I stopped manually.