Reading cost files: first version