Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/bHelp Writing a File /b

Status
Not open for further replies.

Boticas

Programmer
Apr 24, 2002
5
0
0
PT
Hello
I’m trying to write in a file a string, and that string have ‘”’ in the middle of string and because of that VB interprets that string has two strings and consequently because of that when I’m trying to execute the instruction “Write(file,str)” a receive a mensage of error because he thinks that “str” is two strings

Can anybody help ma
tanks
 
replace a " with "" in the string you are trying to write:

dim someString as new string("Quit ""wishing""... go ""fishing""")

when you write this to a file, it comes out as:

Quit "wishing"... go "fishing"

;-)
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top