Solved

Outputting a character

Posted on 2006-10-31
5
183 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

696 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