I'm trying to read a csv file with comments and empty lines, from which I need to fetch lines which are not empty or commented.
File looks like this:
Test File for dry run:
#This is a comment
# This is a comment with, comma
# This,is,a,comment with exact number of commas as valid lines
h1,h2,h3,h4
a,b,c,d
e,f,g,h
i,j,k,l
m,n,o,p
Expected Output:
h1 h2 h3 h4
-----------
a b c d
e f g h
i j k l
m n o p
Unsuccessful attempt:
q)("SSSS";enlist ",")0: ssr[;;]each read0 `:test.csv // tried various options with ssr but since '*' wildcard gives error with ssr so not sure of how to use regex here