public class TestFileInputStream { public static void main(String [] args) { //读取指定文件中内容,并在控制台输出 FileInputStream fis = null; byte[] b = new byte[1024]; int len = 0; try { fis = new FileInputStream("E:\\javafile\\ja.txt"); while((len = fis.read(b…
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.*; /** * 读取动态产生的文件内容 */ public class RandomAccessRead { public static Logger logger= LoggerFactory.getLogger(RandomAccessRead.class); //文件默认读取位置为从开始读取 public static final long DE…