Libraryless. Click here for Pure Java version (2553L/16K).
static File extractResource(S name, File outFile) { if (!outFile.exists()) // TODO: use temp file stream2file(mc().getResourceAsStream(name), outFile); ret outFile; }
Began life as a copy of #1022671
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029756 |
Snippet name: | extractResource |
Eternal ID of this version: | #1029756/1 |
Text MD5: | 9da4e4d7b402c629eef87b15066cfbb1 |
Transpilation MD5: | 2d080ca9691f3079eb141ef2e5380272 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-09-11 22:47:15 |
Source code size: | 183 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 182 / 251 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029758 - extractResourceWithPath #1031316 - loadTextFileResource |