Announcement

Collapse
No announcement yet.

TAB format

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TAB format

    Hi all, I need to format a .txt file with tab on every line. I need to know how I can add tab spaces before the line. The same thing that in C works with "\t" .
    For example my input file.txt has 3 lines:
    ONE
    TWO
    THREE

    I need this output on the same file (with tab spaces, not with underscore :o) ):
    ______ONE
    ______TWO
    ______THREE

    Thanks!
    Bye

  • #2
    Re: TAB format

    Create a New Constant in the Project Settings
    Name it: #ASC_TAB#
    Value: 9

    Whenever you need the TAB to be outputted, use #ASC_TAB# instead.

    TextFile.Write ("C:\Text1.txt", "#ASC_TAB#Brad")

    Comment


    • #3
      Re: TAB format

      It could be a good idea [img]/ubbthreads/images/icons/smile.gif[/img]

      Thx

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎