-
Notifications
You must be signed in to change notification settings - Fork 1
FileCSV
/// @func FileCSV /// @param {string} filename the name of the file to open /// @param {bool} read_only? optional: whether this file should allow writing to. Default: true /// @param {bool} new? optional: whether this file should be blank. Default: false /// @desc Used for creating, reading and saving to CSV files. Files are written on a per-column basis, and // you must use writeln() to advance to a new row. Reading is also on a per-column basis, and you can // check if you have reached the end of the row by calling eol(). /// @example // // writing //var _csv = new FileCSV( "my.csv", true, true ); // //_csv.write( "Sword", 10, 10 ); //_csv.writeln( "Armor", 20, 30 ); // //_csv.close(); // // // reading //var _csv = new FileCSV( "my.csv", true, false ); // //show_debug_message( _csv.read() ); //// Sword //_csv.readln(); //// Armor //show_debug_message( _csv.red() );
Devon Mullane 2020