If you have the file in a string variable, named, for example myfile, you have to cut the string in lines (detecting the CRLF characters) and ading each line to the list
You detect the CRLF characters with n=myfile.IndexOf(chr(13) & chr(10))
You obtain the line with linex=myfile.Substring2(0,n)
You add the line to the list with mylist.Add(linex)
You truncate the rest of the file with myfile=myfile.SubString(n+2)