It doesn't matter what you're trying to accomplish; if you don't use the right code then it won't work. The fact that some code worked for one file doesn't necessarily mean it will work for another file because the two files may be different. As I said in my previous post, you are explicitly try to split the file on CR/LF pairs. If the lines of the file are delimited by LF characters alone then there are no CR/LF pairs so the file won't be split. You can test that by trying to split that file on LF characters alone:If that works where your other code doesn't then that is the issue for that particular file.Code:Dim htmlLines() As String = e.Result.Split(ControlChars.Lf)
As I also said in my previous post, if you want to be able to handle files that are delimited in both ways then you should use a StringReader.




Reply With Quote