Java, fill CSV File with integer casted to String -
i have integer value long exported , displayed correctly in csv file.
the value diaplyed this:
1,13364e+12
instead of this:
08136677950770
i use bufferedwriter write file, , code looks this:
writer.write(data[0].tostring()); writer.write(";");
i've tried this:
writer.write("\'"+data[0].tostring()+"\'"); writer.write(";");
but displays this:
'08136677950770'
how can display value without quotes?
08136677950770
i recommend using biginteger, works string
representation.
to value use simple tostring()
method.
biginteger bi = new biginteger("1234567890"); string str = bi.tostring();
Comments
Post a Comment