I’m attempting to load text files in to a database line by line, I cannot use a standard import method as the breakdown of the file means that each line has a different number of columns, however it is thankfully comma separated.
I’m attempting to use the ‘Split’ function so that I may extract certain information from each line, unfortunately any text fields are ” ” enclosed and some will contain comma’s within the specified text.
Is it possible to use the Split function and ignore any comma’s that fall within enclosed text, if not then I’m happy to write a custom function but is it possible to determine if a text string is enclosed by ” ” ?
Thanks & Kind Regards,
Matt.
Many thanks mwolfem I’m sorry to say I haven’t tested your code yet but in my case I’m looking to pick certain values from my string without printing the whole line, however after a little more research I have a working solution for anyone else who is struggling with this problem, is as follows:
Create this first function in a module:
And you then then use it during a file import with something like the following: