• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.
  • We, the systems administration staff, apologize for this unexpected outage of the boards. We have resolved the root cause of the problem and there should be no further disruptions.

Convert between SEC and CSV

I tried importing it into LibreOffice, just the part below the ....+....1....+....2 line... it all wound up in column A.

I was able to save as a csv, but everything stayed in column A.

Looks like a program that would read it in by start column and end column for each piece of data on each line, would do it. That info is in the sec file.

Then you could save out as csv.

Unfortunately, I don't know of any program that will do that.
 
Last edited:
When importing text files into Excel, you can manually adjust how the text is split into columns. Did LibreOffice copy that feature?

If you're still stuck I can whip up a web page that'll convert for you.
 
There's a flat file extractor that looks useful for this, but it takes a little Unix and coding knowledge. I can probably do some one-off parsing for people, if you need it. If I feel clever and inspired, I can turn it into a web utility for people to use.

Can someone point me at the relevant input format specification for the SEC file?
 
A good thing to do is find and replace any spaces with tabs of commas so that a spreadsheet import can designate those characters as column breaks.

The .SEC files I have are laid out great and are readable, but the spaces/blank characters between a name and the UWP varies which impacts the amount of columns you end up with if you do what I suggested above.

That is the thing that is taking the lion's share of the time to manage as it throws all the codes into different places and it becomes a bit of a mind blast (to misquote Small Faces and Stanley Unwin).

There's a flat file extractor that looks useful for this, but it takes a little Unix and coding knowledge. I can probably do some one-off parsing for people, if you need it. If I feel clever and inspired, I can turn it into a web utility for people to use.

Can someone point me at the relevant input format specification for the SEC file?

Just that one file would be wonderful!
 
Last edited:
A good thing to do is find and replace any spaces with tabs of commas so that a spreadsheet import can designate those characters as column breaks.

The .SEC files I have are laid out great and are readable, but the spaces/blank characters between a name and the UWP varies which impacts the amount of columns you end up with if you do what I suggested above.

That is the thing that is taking the lion's share of the time to manage as it throws all the codes into different places and it becomes a bit of a mind blast (to misquote Small Faces and Stanley Unwin).

After that find and replace, do a find and replace on multiple tabs or commas and replace with a single tab or comma. Or would that throw off something elsewhere?
 
Back
Top