I am trying to get an input from a text file into the VBA code for further analysis. I am trying to use the GetObject function. There is no need to specify the "class" of the file to be opened in certain cases - e.g. if i am opening an excel file - VBA by default assigns the appropriate class. However in the case of a text file (filename.txt) i get an error and my understanding is that the class needs to be specified. What class do i need to specify for opening a text file.
I hope i have clearly explained my problem. If you need clarifications please post.
Appreciate your expert advise and responses. Thanks!

Code below ...

Set ttinp1 = GetObject("C:\older1\folder2\filename1.xls")
' able to execute this command without any errors

Set ttinp2 = GetObject("C:\folder1\folder2\filename2.txt")
' Run-time error '432'
' File name or Class name not found during Automation operation

GrishaP