首页 > 代码库 > 按行读取String类型

按行读取String类型

BufferedReader br = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(content.getBytes()), Charset.forName("utf8")));  
String line;  
line = br.readLine();

 

按行读取String类型