Reads and writes blocks of data from/to formatted text files