/* * TestIO.java * * Created on 04 December 2001, 09:42 */ package uk.ac.leeds.ccg.andyt.tests.java; import java.io.*; /** * * @author andyt * @version */ public class TestIO { /** Creates new TestIO */ public TestIO() { } /** * @param args the command line arguments */ public static void main (String args[]) { // Copy File input to File output File input=new File("/data/feathers_2/andyt/test_data/test_4x4.asc"); input.setReadOnly(); System.out.println("input.length() "+input.length()); File output=new File("/data/feathers_2/andyt/test_data/test_4x4.asc.bac"); try { BufferedInputStream bis=new BufferedInputStream(new FileInputStream(input)); BufferedOutputStream bos=new BufferedOutputStream(new FileOutputStream(output)); try { for (int i=0;i