Skip to content

Commit 823c6c6

Browse files
committed
add faq question about the number of columns supported
1 parent 44df48e commit 823c6c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,3 +272,8 @@ A: The library has basic UTF-8 support, or to be more precise it does not break
272272
Q: Does the library support string fields that span multiple lines?
273273

274274
A: No. This feature has been often requested in the past, however, it is difficult to make it work with the current design without breaking something else.
275+
276+
277+
Q: Can this library handle a variable number of columns?
278+
279+
A: You can read a compile-time known constant number of columns from a file with a variable number of columns. Which columns will be read depends on the strings in the header line. There is no way to read a variable number of columns. You can think of the provided functionality as a SQL `select col1,col2,col3 from my_file.csv` statement and the CSV file as table. You can change the number of columns in the table without affecting the result of the select as long as the queried columns remain.

0 commit comments

Comments
 (0)