Tables and Text Files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • morci
    Forum Member
    • Nov 2002
    • 17

    Tables and Text Files

    Hi all,
    I cant for the life of me work out how to get this result. I have tried to do this for hours and i really dont want to bother anyone but i need help PLEASE. I want to produce this output

    Output Wanted: (below)
    Date: 13 March 2004
    Operating System: Windows XP
    Service Pack: 1
    User Name: Billy Bloggs
    Hostname: NTSYSDATA4
    Domain: Work0001
    Ip Address: 127.234.76.4
    ------------------------

    What i get:(below)
    Date: 13/03/2004Operating System:Windows XP

    I cant work out how to concenate tables, and i want a carriage return at end of every line with a dotted (----) line at the end of the whole process to then keep appending every time the file gets written.

    Ouput after each program run (below)
    Date: 13 March 2004
    Operating System: Windows 2000
    Service Pack: 1
    User Name: Billy Bloggs
    Hostname: NTSYSDATA4
    Domain: Work0001
    Ip Address: 127.234.76.4
    ----------------------------------
    Date: 14 March 2004
    Operating System: Windows 2000
    Service Pack: 2
    User Name: Billy Bloggs
    Hostname: NTSYSDATA4
    Domain: Work0001
    Ip Address: 127.234.76.4
    ----------------------------------
    Date: 15 March 2004
    Operating System: Windows 2000
    Service Pack: 3
    User Name: Billy Bloggs
    Hostname: NTSYSDATA4
    Domain: Work0001
    Ip Address: 127.234.76.4
    ----------------------------------
    Date: 16 March 2004
    Operating System: Windows 2000
    Service Pack: 4
    User Name: Billy Bloggs
    Hostname: NTSYSDATA4
    Domain: Work0001
    Ip Address: 127.234.76.4


    Anyone please help
    Morci
  • Stefan_M
    Indigo Rose Customer
    • Nov 2003
    • 315

    #2
    Append on every line "\r\n"

    Take a look at the project.

    Stefan



    It's a 5 minute project with AMS5
    "With a rubber duck, one's never alone."

    Douglas Adams, The Hitchhiker's Guide to the Galaxy

    Comment

    • Stefan_M
      Indigo Rose Customer
      • Nov 2003
      • 315

      #3
      oops

      forgot the attachement
      Attached Files
      "With a rubber duck, one's never alone."

      Douglas Adams, The Hitchhiker's Guide to the Galaxy

      Comment

      • morci
        Forum Member
        • Nov 2002
        • 17

        #4
        Thanks Very much
        That was great. I learned so much from that. I couldn't work out how to create a new file if the application ran for 1st time - now i can see how.

        Thanks again
        Morci

        Comment

        Working...
        X