w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
PHP fwrite(): Why adding rewind() doesn´t put the file pointer at the beginning of the file?

You should read documentation rewind.

If you have opened the file in append ("a" or "a+") mode, any data you write to the file will always be appended, regardless of the file position.

choose another mode from fopen.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.