1 | public static String readTextFile(String fileName, String defaultContents) throws IOException {
|
2 | return loadTextFile(fileName, defaultContents); |
3 | } |
4 | |
5 | public static String readTextFile(File file, String defaultContents) throws IOException {
|
6 | return loadTextFile(file.getPath(), defaultContents); |
7 | } |
Began life as a copy of #2000322
Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #2000508 |
| Snippet name: | readTextFile (function) |
| Eternal ID of this version: | #2000508/1 |
| Text MD5: | e25f1377454abfe03619c129340763ef |
| Author: | stefan |
| Category: | javax |
| Type: | New Tinybrain snippet |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-08-09 16:56:44 |
| Source code size: | 316 bytes / 7 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 808 / 530 |
| Referenced in: | [show references] |