如何打开和读取Java文件 [英] How to open and read a java file
本文介绍了如何打开和读取Java文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要用于打开和读取带有Java扩展名的文件的代码,用户必须在文本框中仅输入Java文件才能打开该文件.
I need the code for opening and reading a files with the java extension, the user must enter only a java file on the textbox to open the file.
推荐答案
您可以使用FileReader.试试这个:
Java:读取文件 [
You can use FileReader. Try this:
Java: Reading a File[^]
hope it helps :)
这篇关于如何打开和读取Java文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文