Answer the question
In order to leave comments, you need to log in
How to write to the very beginning of a line?
Now I read the manual and realized that it’s not possible to write text to the very beginning of the file? I'm talking about fopen.
I have a file where I need to delete 4 lines starting from 2-5 and replace with other 2 lines.
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:11
далее текст тра-татата.
#EXTM3U
#EXT-X-TARGETDURATION:5
#EXT-X-PLAYLIST-TYPE:VOD
далее текст тра-татата.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question