Hello all,
I'm trying to create a simple program that creates a text file with some text inside of it.
First off, I've managed to create the text file with a few lines of text. My Issue is that I need to use Quotes "" inside of my text file(main.cfg) for example I'd like to write this line to the text(cfg) file:

echo "Welcome"

Is it even possible to add quotes to a text/cfg file using the WriteLine command?

Recommended Answers

All 2 Replies

Put backslashes in front of any character and it will be treated as a litteral, so

\" will be a ", but it wont do anything odd with it.

Sweet thanks a bunch! Works great

Be a part of the DaniWeb community

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