I want to open CSV file in a+ mode for append content. I open Varien_File_Csv class and check for that but I did not found any option for open file in a+ mode.
1 Answer
You can use a "drop-in" trick.
Copy it in: app/code/community/Varien/File/Csv.php
and change it according to your needings.
BEWARE: It will have system-wide effects, so make sure you are not making anything disruptive.
Otherwise you could use Varien_Io_File
.
See methods:
streamOpen
(param$mode
)streamReadCsv
streamWriteCsv