fixed method addRowInFile