read and write tabular data