# ReadMe ReCsvEditor 0.98.2

This version contains minor fixes and some Script examples.

Version 0.98.2 jars

If you have any questions, problems or suggestions feel free to contact me at:

- General Discussions
- Create a ticket

## Installing

This version contains upgrade jars that must be copied over an existing ReCsvEditor 0.97 (or later) installation; Instructions

- Backup the existing ReCsvEditor lib directory.
- Copy the contents of the lib Directory in this Zip-File to the ReCsvEditor lib directory.

It is advisable to backup your existing ReCsvEditor lib Directory and database before you make any changes to it.

If you do not have ReCsvEditor installed; get one of the installers from: https://sourceforge.net/projects/recsveditor/files/reCsvEditor/

## Changes in Detail

### Scripting changes

Scripting changes include:

To edit a Csv file:

    32  var dir = RecordEditorData.getDirectoryName();
    33  if (dir != null) {
    34     var screen = RecordEditorData.openCsvFile(dir + "barDTAR020.csv", "UTF-8", "|", "'");
    35  }

To look through the files being edited:

    56     var filesBeingEdited = RecordEditorData.getFileList();
    57     for (i = 0; i < filesBeingEdited.size(); i++) {
    58         var fileDef = filesBeingEdited.get(i);
    59         if (fileDef.layout.getLayoutName() == "DTAR020") {
    60             return fileDef.getScriptData();
    61         }
    62     }
    63     var dir = RecordEditorData.getDirectoryName();

Note: the call fileDef.getScriptData() will return the ScriptData (RecordEditorData) for a file.

### Looking at the files being edited

You can look at the files being edited using the RecordEditorData.getFileList()

### Code Generation

When view a file, the Generate options will generate Java / Python code to read / write the file.

### Edit Standard Field Delimiters and Quotes

You can now edit the Standard Field delimiters and Quotes that appear in Drop down menu's (+ are searched for). Select Edit >>> Edit options, the select the Csv Tab:

## Change Summary

### Changes 0.98.2

- Minor fixes
- Scripting changes and Examples openfile.js - edit a Csv file and filterOnStoreCsv.js -link 2 files together.

### Changes 0.98.1

- Add Code generation option (java python). This option will generate java/python code read/write the file being viewed.
- New Fixed width option with old fixed width option becoming Schema option.
- You can enter your own Delimiters/Quotes in in the Export as Csv option.
- Can enter Field-Delimiters/Quotes in a Unicode format of \u000A etc.
- Can edit the default Quotes (Edit >>> Edit Options >>> Csv)
- Basic line commands added (e.g. i (insert 1 line), i5 (insert 5 lines, d (delete 1 line) and r (repeat line)).
- Can edit basic Cobol files (using the schema option).