MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / readFile

Method readFile

javacli/Main.java:29–31  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

27public class Main {
28 // utility method to read a file and return as a String
29 public static String readFile(String filename) throws IOException {
30 return readStream(new FileInputStream(filename));
31 }
32
33 private static String readStream(InputStream stream) throws IOException {
34 // No real need to close the BufferedReader/InputStreamReader

Callers 1

mainMethod · 0.95

Calls 1

readStreamMethod · 0.95

Tested by

no test coverage detected