import java.io.*;
import java.io.File;
import javax.sound.sampled.*;
public class InOut {
public static void main(String[] args) {
try {
File srcFile = new File("earthmovers1.mp3");
File dstFile = new File("earthmovers2.mp3");
FileInputStream in = new FileInputStream(srcFile);
FileOutputStream out = new FileOutputStream(dstFile);
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
in.close();
out.close();
} catch ( Exception e ) {System.out.println( e );}
}
}
Blog Archive
-
▼
2011
(19)
-
▼
June
(7)
- In list of numbers, find each pair that equals 100...
- Binary search in Perl, using CGI.pm and Ajax
- python: generate list of random alphnumeric string...
- View source of a malware website: http://bzowwjcr....
- Java: Write to File: Copy Bytes: Copy Music
- aLife cellular automata with sound output
- ascii to hex converter. useful for iwconfig key pa...
-
▼
June
(7)
Friday, June 10, 2011
Java: Write to File: Copy Bytes: Copy Music
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment