Solved

Outputting a character

Posted on 2006-10-31
5
178 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
This article will show, step by step, how to integrate R code into a R Sweave document
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now