I need to read files using vbscript and remove all leading spaces including any tabs.
I now LTRIM will remove the leading spaces but how do I remove tabs also.
Function LTrimEx(str)
Do Until x
If Left(str, 1) = Chr(32) Or Left(str, 1) = Chr(9) then
str = Right(str, Len(str) - 1)
Else
x = true
End If
Loop
LTrimEx = str
End Function