T
Timo Nentwig
Hi!
How can I read what I just wrote to a ServletOutputStream?
Timo
How can I read what I just wrote to a ServletOutputStream?
Timo
Timo said:How can I read what I just wrote to a ServletOutputStream?
How can I read what I just wrote to a ServletOutputStream?
Hi!
How can I read what I just wrote to a ServletOutputStream?
Timo
Timo Nentwig said:for( int c = -1; rr.read() != -1; ) w.write( c );
Tor said:This writes a -1 for each character read. Are you sure you don't want
to assign to c?
for( int c = -1; (c = rr.read()) != -1; ) w.write( c );
This writes a -1 for each character read. Are you sure you don't want
to assign to c?
for( int c = -1; (c = rr.read()) != -1; ) w.write( c );
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.