Created
July 21, 2015 09:26
-
-
Save jwlyn/cc10d0315987d34bc4cd to your computer and use it in GitHub Desktop.
读取一个resources下的properties文件,一行一行地读取。
不需要读取成为Properteis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static List<Request> loadRequest() throws IOException { | |
InputStream inputStream = Main.class.getClassLoader().getResourceAsStream("seeds.properties"); | |
final Reader in = new InputStreamReader(inputStream, "UTF-8"); | |
LineNumberReader rd = new LineNumberReader(in); | |
String line = null; | |
while((line=rd.readLine())!=null){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment