如何用java编程语言导入文件 [英] how can I import a file in java programming language
本文介绍了如何用java编程语言导入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何用java编程语言导入文件
how can I import a file in java programming language
推荐答案
如果通过导入文件你意味着读取文件,那里有几种方法,可能是最常见的方法是使用Scanner和BufferedReader对象。看一下
http ://java.sun.com/javase/6/docs/api/java/util/Scanner.html
和
http://java.sun.com/javase/6/docs/api/java /io/BufferedReader.html
分别提供有关如何使用它们的信息。
If by import a file you meant read a file, there are several ways, probably the most common of which are using the Scanner and BufferedReader objects. Have a look at
http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
and
http://java.sun.com/javase/6/docs/api/java/io/BufferedReader.html
respectively for information on how to use them.
这篇关于如何用java编程语言导入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文