![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Hi, all, I have a question that must be very simple to many of you. I am using VB.Net and I need to print a line below in a file key="test" I know in C++ I can write something like cout << "key=\"test\"" << endl; I try to use the statement like WriteLine( "key=\" test \" " ) and got error. Does anyone what is the correct way to print out double quote character in VB.Net? Thanks a lot, David |
#2
| |||
| |||
|
|
Have you tried "key=""test"""? "David" <zhouw (AT) worldnet (DOT) att.net> wrote in message news:x5KLa.28813$0v4.2136429 (AT) bgtnsc04-news (DOT) ops.worldnet.att.net... Hi, all, I have a question that must be very simple to many of you. I am using VB.Net and I need to print a line below in a file key="test" I know in C++ I can write something like cout << "key=\"test\"" << endl; I try to use the statement like WriteLine( "key=\" test \" " ) and got error. Does anyone what is the correct way to print out double quote character in VB.Net? Thanks a lot, David |
#3
| |||
| |||
|
|
Mark, Thanks a lot for your help. It works now. I have a another question. In C++, I can do "\tTest". But in VB.Net, it just directly print out \t rather than tab. Any idea how to print tab? Thanks, David "Mark Findlay" <mfindlay (AT) speakeasy (DOT) org> wrote in message news:4oudnWUV0IvL6GKjXTWc-w (AT) speakeasy (DOT) net... Have you tried "key=""test"""? "David" <zhouw (AT) worldnet (DOT) att.net> wrote in message news:x5KLa.28813$0v4.2136429 (AT) bgtnsc04-news (DOT) ops.worldnet.att.net... Hi, all, I have a question that must be very simple to many of you. I am using VB.Net and I need to print a line below in a file key="test" I know in C++ I can write something like cout << "key=\"test\"" endl; I try to use the statement like WriteLine( "key=\" test \" " ) and got error. Does anyone what is the correct way to print out double quote character in VB.Net? Thanks a lot, David |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |