FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 684 : saveStrings outputs "null" for null Strings
Last modified: 2007-11-17 11:51
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
WONTFIX -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
fjen
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-11-13 11:05
rev 133, os-x 10.4, powerbook g4
saveStrings() outputs "null" for lines containing a null String. this is odd since reading it
back in gives a value for that line. i guess it should output "" (empty string) instead.
String[] tst = new String[3];
tst[0] = "123";
tst[2] = "abc";
saveStrings("test.txt",tst);
F
Additional Comment
#1 From fry 2007-11-17 11:51
no, because an empty value is different from a null value. if you don't
want null you can fill the array with empty data.