P
pereges
Can I use this mode to create a new file , add some data and then
append more data ? How is it different from ab+ ?
append more data ? How is it different from ab+ ?
Can I use this mode to create a new file , add some data and then
append more data ?
Yes.
How is it different from ab+ ?
[Critical part of question in subject: "ab" mode in fopen]
Can I use this mode to create a new file , add some data and then
append more data ?
Yes.
How is it different from ab+ ?
"ab" is "append; open or create binary file for writing at end-of-file"
and "ab+" is "append; open or create binary file for update, writing at
end-of-file".
In other words, the difference is that "ab" is write-only, while "ab+"
is read/write.
replace 'better' with 'correct'pereges said:[Critical part of question in subject: "ab" mode in fopen]
Can I use this mode to create a new file , add some data and then
append more data ?
Yes.
How is it different from ab+ ?
"ab" is "append; open or create binary file for writing at
end-of-file" and "ab+" is "append; open or create binary file for
update, writing at end-of-file".
In other words, the difference is that "ab" is write-only, while
"ab+" is read/write.
Then in that case, ab+ is better if you want to do write followed by
read in same function.
Can I use this mode to create a new file , add some data and then
append more data ? How is it different from ab+ ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.