CSV Data to Binary File

Era Scarecrow via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 7 20:53:59 PDT 2014


On Thursday, 7 August 2014 at 15:11:48 UTC, TJB wrote:
> Here is a snippet of my csv data:
>
> 34220, 370000, 371200, 1, 1, 12, N,
> 34220, 369000, 372500, 1, 11, 12, P,
> 34220, 370000, 371200, 1, 2, 12, N,

  I can't help but think somehow that as long as the data is 
numbers or words, that scanf would be useful even if it's a C 
function... Someone mentioned the final empty field, this makes 
me scratch my head...

  And a struct of exactly 27 bytes... i'd probably pad that to 28 
or 32 if possible which allows you to expand your definition 
later... not to mention being 32bit aligned (if speed becomes 
important)


More information about the Digitalmars-d-learn mailing list