Maneesh Godbole wrote:What type of file is it? Text? Binary?
Also, why are you reading one byte at one time?
I guess its binary, its an Adobe Photoshop PSD file.
I am kinda new to
Java, i don't know why i read 1 byte at a time.
I thought that the
BufferedInputStream() would put the bytes in a buffer, not reading the file byte by byte.
The makeBackup method (horrible name, suggestions are welcome) is supposed to take all kinds of file formats.
??
Kind regards Mads Nielsen