Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
9 years ago

ReadLine()

Hello,

 

Why do this method don't take into account the first caracter ?

I have the following line in a txt file :

"testline";"100";"120";

When I try to do :

line:= file.ReadLine

and when I debug the line var, the first char is missing.

 

any help please ?

4 Replies

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    When I put something else than " it work (double-quote)

    When I put a " in the first position it ommit it.

    • joseph_michaud's avatar
      joseph_michaud
      Moderator

      Looks like a bug with how we display the variables in the Locals pane.  If you print the variable to the log or look at the first character with GetChar(), the double quote shows properly.

      • m_essaid's avatar
        m_essaid
        Valued Contributor

        ... and when I add manually a double quote I have then two double-quotes !

        ex :

        '"' + MyLine