Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Outputting a character

Posted on 2006-10-31
5
Medium Priority
?
187 Views
Last Modified: 2010-04-16
If i need to write to a file the following sentence in the exact format as below, how do i do it:

My name is "Alex"

I cant seem to get the " character to print out...how do i do it????

thanks
0
Comment
Question by:Squadless
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 17845446
In what language are you trying to do this?
0
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 2000 total points
ID: 17845452
Squadless,

What language are you using?  Most use double quotes for a special purpose but also provide a way to escape them so they would be treated as a normal character.  The character you use depends on the language.  Some common ones are the backslash (\) or a double quote (").  To escape the double quote with either of these you would use \" or "".

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 1

Author Comment

by:Squadless
ID: 17845474
erm i messed up...in java...sorry
0
 
LVL 1

Author Comment

by:Squadless
ID: 17845494
got it...was too lazy to try things
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 17845608
I'm glad that I could help you.  Thank you for the grade, the points and the fun question.

bol
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Starting up a Project

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question