MCPcopy Create free account
hub / github.com/PCGen/pcgen / readTextFromFile

Method readTextFromFile

code/src/java/pcgen/gui2/PCGenFrame.java:1657–1667  ·  view source on GitHub ↗
(String fileName)

Source from the content-addressed store, hash-verified

1655 }
1656
1657 private static String readTextFromFile(String fileName)
1658 {
1659 try
1660 {
1661 return Files.readString(Paths.get(fileName));
1662 } catch (IOException e)
1663 {
1664 Logging.errorPrint("Could not read license at " + fileName, e);
1665 return LanguageBundle.getString("in_licNoInfo"); //$NON-NLS-1$
1666 }
1667 }
1668
1669 /**
1670 * The Class {@code FilenameListener} is used to update the frame title each time the

Callers 1

runMethod · 0.80

Calls 3

errorPrintMethod · 0.95
getStringMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected