I'm reading an UTF-8 BOM file line by line and one thing that
needs to be done is trimming spaces and tabs from the beginning
and end of all lines
Code: Select all
While Not Eof(fileHandle) ; Loop as long the 'end of file' isn't reached
line = ReadString(fileHandle) ; Get the line
line = Trim(line) ; Trim spaces
line = Trim(line, #TAB$) ; Trim tabs as well
Debug "#"+line+"#"
; Do more...
Wend
Code: Select all
::
Set $Bookmarks;
The debug output looks like this:
Code: Select all
# ::#
#Set $Bookmarks;#
Code: Select all
line = Trim(line, #TAB$)