1. Tab Delimited

This is a multi-part message in MIME format.

------=_NextPart_000_6678_cfd_56f

I've made a simple library for manipulating tab-delimited records.

It's very useful for manipulating text files before you import them into 
another database program, like access or something.

I made it for work, cause this one file had a date format that access didn't 
recognise, so it was used to read in, change, and write back about 450 
thousand records. :)

I know that there is a proper database.e, and a miriad of other solutions to 
data manipulation, but given their complexity, this was a much more 
appropriate solution.

Can someone comment on the usefullness of this lib?
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick



------=_NextPart_000_6678_cfd_56f
Content-Type: application/octet-stream; name="tabdat.e"

new topic     » topic index » view message » categorize

2. Re: Tab Delimited

On 30 Jul 2002, at 13:53, mistertrik at hotmail.com wrote:

> This is a multi-part message in MIME format.
> 
> ------=_NextPart_000_6678_cfd_56f
> 
> 
> I've made a simple library for manipulating tab-delimited records.
> 
> It's very useful for manipulating text files before you import them into 
> another database program, like access or something.
> 
> I made it for work, cause this one file had a date format that access didn't
> recognise, so it was used to read in, change, and write back about 450
> thousand
> records. :)
> 
> I know that there is a proper database.e, and a miriad of other solutions to
> data manipulation, but given their complexity, this was a much more
> appropriate
> solution.
> 
> Can someone comment on the usefullness of this lib?

strtok was made for this work.

Kat

new topic     » goto parent     » topic index » view message » categorize

3. Re: Tab Delimited

>strtok was made for this work.

Oh. ok. I'm like the second inventor of the wheel.

:P

Oh well, it serves well enough for me, and *I* understand it, so that's the 
important bit.
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

new topic     » goto parent     » topic index » view message » categorize

4. Re: Tab Delimited

On 30 Jul 2002, at 21:50, mistertrik at hotmail.com wrote:

> 
> >strtok was made for this work.
> 
> Oh. ok. I'm like the second inventor of the wheel.
> 
> :P
> 
> Oh well, it serves well enough for me, and *I* understand it, so that's the
> important bit.

No problem, you don't haveto use strtok, and the source code is out there for 
you. But there is a lot of new work in it since first released two years ago, 
and it should be able to do anything you want.

functions:
parse
deparse
instok
istok
remtok
deltok
findtok
gettok
addtok
puttok / changetok
reptok / repltok
matchtok
matchntok
wildtok
wildntok
sorttok
sortntok 

and these come in non-case-sensitive versions too, and most can use 
sequences (or nested sequences even) in the parameters. For your use, the 
sort functions might be handy too, trick.

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu