     }
     
     /// read content to the current csv file.
-    open func readFromPath(filePath: String) -> NSMutableDictionary{
+    open func readFromPath(filePath: String) -> NSMutableDictionary {
         let fileManager = FileManager.default
         let output:NSMutableDictionary = NSMutableDictionary()
         

    open func write(text: String) {
        let path = "\(directory)/\(self.csvFileName())"
        let fileManager = FileManager.default
        let updatedString = text.replacingOccurrences(of: "\n", with: "\\n").replacingOccurrences(of: "\t", with: "\\t").replacingOccurrences(of: "\r", with: "\\r")
        
        
        if !fileManager.fileExists(atPath: path) {

//MARK: -  Export public Methods

///a free function to make export the CSV file from file name, fields and values
public func exportCSV(_ csvObj:CSV) -> String {
    CSVExport.export.divider = DividerType.comma
    return CSVExport.export.exportCSV(csvObj.name, fields: csvObj.fields, values: csvObj.rows);
}

///a free function to make export the CSV file from file name, fields and values
public func exportCSV(_ filename:String, fields: NSArray, values: NSArray) -> String{
    return CSVExport.export.exportCSV(filename, fields: fields, values: values);
}
