read file in php until a specified string is found -


i have file wish read in php , split smaller files.

the file base64encoded each section delimited in file (unecoded) tilde followed original filename of base64 encoded data followed tilde.

as silly example, file :

nbaynnbba~file1.txt~nbaynnbbanbaynnbbanbaynnbbanbaynnbba~file2.txt~

i don't want use file_get_contents files huge , don't want hit memory limited.

can think of way of doing without having use fgetc char @ time ?

there no line breaks in file way - 1 continous block.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -