MCPcopy
hub / github.com/davyxu/tabtoy / readFileAsString

Method readFileAsString

v3/example/java/src/test/java/Main.java:10–13  ·  view source on GitHub ↗
(String fileName)

Source from the content-addressed store, hash-verified

8
9 // 从文件读取数据
10 private static String readFileAsString(String fileName)throws Exception
11 {
12 return new String(Files.readAllBytes(Paths.get(fileName)));
13 }
14 public static void main(String[] args) throws Exception {
15
16 // 从文件读取配置表

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected