小编nee*_*gap的帖子

Java打印方块(未知字符)以及常规文本

码:

public class MainApplication {

      public static void main(String[] args) throws IOException {

              try{
                  // Open the file that is the first 
                  // command line parameter
                  FileInputStream fstream = new FileInputStream("data/temp.CSV");
                  BufferedReader br = new BufferedReader(new InputStreamReader(fstream));
                  String strLine;
                  //Read File Line By Line
                  while ((strLine = br.readLine()) != null)   {
                  // Print the content on the console
                  System.out.println (strLine);
                  }
                  //Close the input stream
                  in.close();
                    }catch (Exception e){//Catch exception if any
                  System.err.println("Error: " + e.getMessage());
                  }
      }
}
Run Code Online (Sandbox Code Playgroud)

CSV档案资料: …

java csv file

5
推荐指数
1
解决办法
2855
查看次数

标签 统计

csv ×1

file ×1

java ×1