csv, tokenize

I’m trying to treat a csv file. to read the contents invoke:

getFile, and then mapping to “tokenize” but I get no result.

If I insert the contents of file in the input field “inString” of service “tokenize” itworks ok.

[ATTACH]916[/ATTACH]
example.doc (60.5 KB)

You should investigate the use of the flat file services instead of trying to parse this yourself.

Tokenize likely has behaviors that you don’t want, such as collapsing multiple delimiters into one field.

What are the inputs you’re using in the getFile call?

Inputs en getFile:

[FONT=PalatinoLinotype-Italic][SIZE=3][FONT=PalatinoLinotype-Italic][SIZE=3]filename → /home/xxxx/rr.csv[/size][/font]

loadAs -->string

encoding–> nothing

bufferSize–> nothing

I have three rows in a file for each row and I want to call a service. I think the tokenize can serve this purpose.

[SIZE=3][I]You can show a simple example? Thank you very much!

[/SIZE][/SIZE][/FONT][/I]

Based upon the inputs there isn’t anything obvious as to why passing the string to tokenize wouldn’t work.

But I would again recommend using the flat file services to do this. And I would definitely recommend against tokenize.