I have code to find a specific occurance of text in a file and give me an offset so I know where this occurance end. Now I want to read the file from that offset to the end of the file. The file contains binary data as well as text. How do I do this in E开发者_StackOverflow社区rlang?
Use pread
. (See Erlang documentation on the file module). You have to take care of any character encoding yourself as the function deals with only bytes.
精彩评论