Re: fopen and r+ problem
s1m0n <nomail@xxxxxxxxxxxx> wrote in
news:mn.64507d79900517ae.50781
@demandez.moi:
But this code doesn't work, everything is erase in my file, no new line
appears...
Could you please help me ?
Thank you, and hope my english is understandable.
Open the file first for reading, put its contents into an array or other
PHP variable, then re-write the file with your new data on the first line,
followed by the original contents....
.
Relevant Pages
- Re: get number of lines of a text file
... Osiris81 wrote:Unfortunatley, all of your methods do not work, they all need to read the whole file first to get the number of lines and that's way to slow if you have big files. ... If reading line by line takes 20 seconds, reading the entire file as a plain string and processing as in the link to my old post should be very fast. ... (comp.lang.labview) - Re: Wipe a drive clean
... Before reading this, yes I did. ... the first operation appears to be a renaming of the file in ... to want to move/rename the file first. ... (freebsd-questions) - Re: convert .txt to .wav
... Maybe you should read the text file first. ... Then, depending on what you read in from the text file, you should reformat that data and create an array that contains the time domain signalyou want to write to the WAV file. ... (comp.soft-sys.matlab) - Re: load/parse large text file
... I've updated my code to read the entire file first, one line at a time into ... range equal to the array. ... I'm not sure how many rows are in the data file in advance, ... variant array and then writing that to the spreadsheet by simply ... (microsoft.public.excel.programming) - Re: Wipe a drive clean
... Before reading this, yes I did. ... the first operation appears to be a renaming of the file in ... to want to move/rename the file first. ... (freebsd-questions) |
|