Search code examples
csvsupercsv

ReadOnly column for CSV


Am using SuperCSV to write my table data into a csv file. Somehow now i need to make the first column of csv not editable (read-only). Couldn't find anything specific. Is there a way to do that?


Solution

  • No, CSV is a pure-text format. You can't lock a part of it - only make the entire file read-only at the file system level.

    You need a binary format (Excel, OpenOffice...) where you do get that capability, but with CSV files, it's impossible.