how to print quotations in java
Hi,
I really really need to print quotations and store it into a text file for further use..
My output text file should be like this
Code:
"ReadPlatInstance.xArray[TotalLineCount/4]" "zz[j]"
(the two variables are double-values
the sample numbers are..
"0.15844" "-93.92101412065836"
"0.15844" "-2153.8147981553"
my code is
Code:
file_out.write(ReadPlatInstance.xArray[TotalLineCount/4]+"\t"+zz[j]+"\n");
my current output sample is..
0.15844 -93.92101412065836
0.15844 -2153.8147981553
when I tried this code, it showed errors in java..
Code:
file_out.write("""+ReadPlatInstance.xArray[TotalLineCount/4]+"""+"\t"+"""+zz[j]+"""+"\n");
How do I insert double quotes into the text file
regards
dhilip
Re: how to print quotations in java
Quote:
How do I insert double quotes into the text file
Use the escape character: \"
Re: how to print quotations in java
Quote:
Originally Posted by
Norm
Use the escape character: \"
shoot! fantastic!
dhilip