Re: Copying files with InputStream/OutputStream instead of Reader/Writer
Please post the code inside CODE tags instead of just a link - some here are reluctant to follow posted links.
The code in the copyFile method you supply is already using Input/Output streams - FileInputStream and FileOutputStream... the answer to your question is in your own code
And simple truth miscalled simplicity,
W. Shakespeare
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Re: Copying files with InputStream/OutputStream instead of Reader/Writer
Originally Posted by dlorde
Please post the code inside CODE tags instead of just a link - some here are reluctant to follow posted links.
The code in the copyFile method you supply is already using Input/Output streams - FileInputStream and FileOutputStream... the answer to your question is in your own code
And simple truth miscalled simplicity,
W. Shakespeare
Okay I will next time =P
How about in my Main class? I used BufferedReader/Writer. I was told not to use Reader/Writer because some tests will fail.
Re: Copying files with InputStream/OutputStream instead of Reader/Writer
Originally Posted by Backslash
How about in my Main class? I used BufferedReader/Writer. I was told not to use Reader/Writer because some tests will fail.
OK, so what is stopping you switching to FileInputStream and FileOutputStream with BufferedInputStream and BufferedOutputStream?
Imagination is more important than knowledge...
A. Einstein
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.