Welcome Guest, Not a member yet? Register   Sign In
Write into a file
#1

[eluser]Lazos[/eluser]
I read the guide about writing into a file but I am not sure about something that I read in the documentation of PHP.

w+ - "Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it."


If I use w+b for my file I can write and in addition it will erase all the data inside?

Actually this is what I want just the phrase truncate the file to zero length means delete all the previous data?
#2

[eluser]Colin Williams[/eluser]
0 data = empty file. Yes




Theme © iAndrew 2016 - Forum software by © MyBB