public static void testFileIO(){
		// File I/O contained in java.io package (imported)
		FileInputStream infile=null;
		FileOutputStream outfile=null;
		
		File inf=new File("input.txt");
		File outf = new File("output.txt");
		
		try{
			infile = new FileInputStream(inf);
			outfile = new FileOutputStream(outf);
			
			int c;
			while((c=infile.read())!=-1){
				outfile.write(c);
			}
			if(infile!=null){ infile.close(); }
			if(outfile!=null){ outfile.close(); }

		}	
		catch(IOException ioe){
			println("IOException in copy");
			println(ioe.getMessage());
			println(ioe.getCause());
		}
		// Creating directories
		String dirname="E:/Documents/Projects/Java/HelloWorld/Files/";
		File d = new File(dirname);
		d.mkdirs();

		//List directories
		String dirname2="E:/Documents/Projects/Java";
		String[] paths;
		File pathd=new File(dirname2);
		paths=pathd.list();
		for(String path:paths){
			println(path);
		}
		
	}