public void open(String url, int mode, boolean timeouts) throws IOException {

		this.mode = mode;
		//url = url.substring(5); 
		
		int cut = 5; // file://
		while(cut < url.length() && url.charAt(cut)=='/')
			cut++;
		
		if(cut+1 >= url.length() || url.charAt(cut+1) != ':')
			cut--;
			
		String path = url.substring(cut);
		System.out.println("opening file: "+path);
		file = new File(path);
	}