dominique1 0 Newbie Poster

Hello,

I have a file which already contains data.
I don't know and I am not sure of the content previously entered as far as end-of-line and whatever finish the file...

eg:
server1.tt.xx.yy.com
server2.tt.xx.yy.com

On one file it could have been entered with a end-of-field after server2.tt.xx.yy.com on another file it could have been entered with a space afterwards, on another one it could have been entered just straight which means we could have as end of file three different types:

1."server2.tt.xx.yy.com"
2."server2.tt.xx.yy.com "
3."server2.tt.xx.yy.com
"
How could I insert a new line server3.tt.xx.yy.com with objTS.WriteLine vbNewLine & strContent
server2.tt.xx.yy.com
server3.tt.xx.yy.com

and not
server2.tt.xx.yy.com

server3.tt.xx.yy.com
or
server2.tt.xx.yy.comserver3.tt.xx.yy.com
...

Is it possible to write cleanly...
thanks,
Dom

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.