PDA

View Full Version : Tables and Text Files



morci
03-03-2004, 07:30 PM
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
03-04-2004, 05:44 AM
Append on every line "\r\n"

Take a look at the project.

Stefan



It's a 5 minute project with AMS5 :D

Stefan_M
03-04-2004, 08:52 AM
oops

forgot the attachement

morci
03-04-2004, 06:47 PM
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