Murray Brown
asked on
VB.net write text file
Hi
I am trying t writ the following connection string which is held in the text of a label
as one line. How do I do this?
I tried writer.WriteLine(lblConnec tionString .Text.Repl ace(vbCrLf , ""))
but it was still written as 3 ines
Server=tcp:otzkwyko1e.data base.windo ws.net;Dat abase=sace ;
User ID= saceuser@otzkwyko1e;Passwo rd= xxxx;Trusted_Connection=Fa lse;
Encrypt=True;
I am trying t writ the following connection string which is held in the text of a label
as one line. How do I do this?
I tried writer.WriteLine(lblConnec
but it was still written as 3 ines
Server=tcp:otzkwyko1e.data
User ID= saceuser@otzkwyko1e;Passwo
Encrypt=True;
How are you looking at the line? Could it be that its a single line but wordwrapped due to its width?
ASKER
Hi CodeCruiser. That might well be the case. I just want to make sure that if there are multiple lines that it converts them into one. Is there perhaps a way to do this by looping or the like?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
Open in new window