CSV vs the # Buffer


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on August 07, 2008 at 07:43:25:

I discovered today that when using the 'FILE (#) CSV' command with a INPUT from the # Buffer, the return result is FULLY PADDED with blanks.

I tried something that looked like this:

Data: Format Data$(1),4*252
...
Main:
INQUIRE (C1A,C1A) EXCP=EXCPEOF
FILE (#) CSV
PRINT (#,C1A)
INPUT (#,DATA)
...

And ALL 4 Data$() elements are fully padded to 252. The actual data barely exceeded 300 bytes.

I also already pointed out (in another post) that the generated CSV record properly parsed everything except it did not strip trailing blanks from string fields. Numbers are properly stripped with leading minus sign. Strings containing either a quotation mark (") or a comma (.) are properly handled.

I really like the speed of this new function, beats all the code we had to write & execute in the past.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]