Carlosdl
29710 pts. | Oct 22 2009 4:21PM GMT
You will need to provide the exact error message, and the line of code where it is being raised.
Mtang2009
15 pts. | Oct 22 2009 5:28PM GMT
Hello Carlos,
Please bare with me, I’m new to this websit ok! Here are the error
Readfile = <a href="http://My.Com" title="http://My. " target="_blank">My.Com</a>puter.FileSystem.OpenTextFileReader(inpath & (Filename(Cnter)))
ArgumentException Occured (This is an error message )
The given file path ends with a directory separator character.
Parameter name: file
Please let me know, if you need more question
Thanks
Minh
Carlosdl
29710 pts. | Oct 22 2009 7:05PM GMT
The problem seems to be the argument you are sending to the OpenTextFileReader method.
I would recommend displaying a message box with the contents of “inpath & (Filename(Cnter))” before calling OpenTextFileReader.
An ArgumentException is raised when the file name ends with a backslash (\).






