1

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 1

2

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
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.