最佳答案:Java读取文件的方法代码如下:import java.io.*;public class ReadFileDemo {public static void main(String[] args) {