line break in string

Support
  • Hello,
    I am trying desespertely to add line break to string variable.
    I cant find a way to do it. I have check and tried the expression string + "\r\n" without success

    The problem is that each thread has to write to the same txt file at leats 5 to 7 lines and add a separator "--------"
    Unfortunately function writetofile in multithreading is mixing writing line on the txt file.
    Is there any mutexes or thread safety system on BAS?
    This is the main reason i would like to write all the lines to a string variable before executing a write to file

    1 writetofile by thread vs 5-7 writetofile by thread

    Thanks for any help

  • Write to list first, than use "Write List To File" action.

  • @GaG thanks a lot
    working like a charm! thanks a lot