Java Text File Read Line readLines(String text)

Here you can find the source of readLines(String text)

Description

read Lines

License

Apache License

Declaration

private static String[] readLines(String text) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.IOException;

public class Main {
    private static String[] readLines(String text) throws IOException {
        return text.split("\\r?\\n");
    }/* w w  w .  ja  v  a2  s  . c  om*/
}

Related

  1. readLines(String fullFileName)
  2. readLines(String lines)
  3. readLines(String string)
  4. readLines(String targetPath)
  5. readLines(String text)
  6. readLines2Lowcase(String inputFile, ArrayList lines)
  7. readLinesAsList(String filename)
  8. readLinesFileSimple(final File inFile, final int prefixMode, final String prefix)
  9. readLinesFromCommand(String command[], List buffer)