06-06-2017, 04:02 PM
Dear Gintaras, thank you for your invaluable advice, as always !
It seems that the input .txt file contains some rubbish characters in its beginning. In routine "OpenISMFile" which reads this file I changed "str s.getfile(fPath)" to str s.getfile(fPath 3) and everything worked perfectly. However, I hesitate to use this workaround as a matter of principle, since there could be cases that I could use useful characters. Could I use a "ltrim" statement on string "s" to eliminate this rubbish ? Thanks for your advice, in advance.
It seems that the input .txt file contains some rubbish characters in its beginning. In routine "OpenISMFile" which reads this file I changed "str s.getfile(fPath)" to str s.getfile(fPath 3) and everything worked perfectly. However, I hesitate to use this workaround as a matter of principle, since there could be cases that I could use useful characters. Could I use a "ltrim" statement on string "s" to eliminate this rubbish ? Thanks for your advice, in advance.