Dim strLength = LEN(output)
Well, no, as written above, that will get the length of the last read line in the file -- which is only going to give you the full length of the file in the pathological case where there's no CR/LF chars -- ie, it's just one long line.pete_roth wrote:That should get the number of characters for assuming your loop is reading properly.
Yeah, it would. I was just reading the (possibly incomplete) posted code, which didn't do that. Anyway, I was more interested in pointing out a couple of other classes and doc pages that might've been overlooked.pete_roth wrote:He made it seem like he was taking every line and concatenating it into one variable in which case LEN(variable) will work.
Users browsing this forum: No registered users and 2 guests