Libraryless. Click here for Pure Java version (2596L/17K).
svoid test_indexOfBytesInFile() { File f = createTempFile(); saveTextFile(f, "bla bla bla blubb bla"); assertEqualsVerbose(12L, indexOfUTF8StringInFile(f, "blubb")); assertEqualsVerbose(-1L, indexOfUTF8StringInFile(f, "blabb")); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026633 |
Snippet name: | test_indexOfBytesInFile |
Eternal ID of this version: | #1026633/3 |
Text MD5: | bf058cbffb9becef92f79f6d5b9a4c0d |
Transpilation MD5: | d8cd4e409752d5df87185394665a5af3 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-16 22:32:45 |
Source code size: | 243 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 163 / 250 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |