It works using "" instead of '' !
Thanks !
julia> readuntil(f, "CKV\n")
"\nTA\n>sp|P30464|1B15_HUMAN HLA class I histocompatibility antigen, B-15
alpha chain OS=Homo sapiens GN=HLA-B PE=1
Thank you very much Dan !
Indeed readuntil works much better. But it seems to accept only one end
line character. Is it possible to use a more complex pattern ?
julia> readuntil(f, '>')
"sp|P31946|1433B_HUMAN 14-3-3 protein beta/alpha OS=Homo sapiens GN=YWHAB
PE=1
`readuntil` is your friend.
`readline` uses `readuntil`. In fact, it is defined as:
readuntil(s,'\n')
On Saturday, July 9, 2016 at 7:40:37 AM UTC-4, Fred wrote:
>
> Hi !
>
> It is often very useful to read a text files by blocks of lines, using
> another line separator than '\n'.
>
>