?
Solved

Outputting a character

Posted on 2006-10-31
5
Medium Priority
?
186 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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.
In this post we will learn different types of Android Layout and some basics of an Android App.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
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…
Suggested Courses

752 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