PDA

View Full Version : CSV file import wizard



ghorwin
5th September 2018, 08:55
Hi there,

quick question: does anyone know of an open-source GUI component for generic CSV-file import, similar to what libreoffice is doing? Basically: offering a dialog with a choice of delimiters/quote option/trimming -> parse file and preview -> select data types and parse into vectors of string, int, double, QDateTime?

Ideally, this would have the feature of "remembering" settings made so that they can be applied for same/similar file later again?

Thanks,
Andreas

wysota
8th September 2018, 13:31
In general you can parse most csv files using a regular expression so you don't need any dedicated components. See here for examples: http://regexlib.com/Search.aspx?k=csv