File f =new File()path getPath() delete() exists() list()
FileInputStream i=new FileInputStream(path or File) read()/write() //one byte read(byte b[])/write(byte[]b) close()
OutputStream fos=new FileOutputStream(path) // FileOutputStream fos=new FileOutputStream(path) DataOutputStrean dos =new DataOutputStrean(fos) readInt()/writeDouble() # one unit #####BufferedInputStream flush() read(byte b[]) write(byte[] b)
FileOutputStream fos=new FileOutputStream(path or File) PrintStream ps=new PrintStream(fos) print() println()
FileOutputStream fos=new FileOutputStream(path or File) Writer ow=new OutputStreamWriter(fos) //字节转字符!
实质还是字节输入输出类转换
FileReader fr=new FileReader(path or File) //InputStreamReader子类实质还是字节转 read() write()
感觉这个挺有用
RandomAccessFile rf=new RandomAccessFile(path/File,"r/rw") read()write() seek() pointer