I wrote up this quick class module a while back to more easily and quickly replace file Input and Inputline functions in code with an array of lines for a file. Basically, I was pre-processing and staging text files into a usable format into a database and wanted to update pre-existing code that had used the same format for input line by line using the VBA file functions.
In the example at the end of the module, I am using a custom function to read an entire CSV file split by vbCrLf into an array.
Let me know if you’re interested in getting that function too.