MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

StilettoAdministrator
They're always after me Lucky ROMS!
Reged: 03/07/04
Posts: 6472
Send PM
Re: Batch file processing...
03/30/07 11:00 AM


> > Okay, so on a work computer I have a file directory similar to this:
>
> {SNIPPIY-SNIP}
>
> I could probably write something like that in Java. I have similar file processing
> programs that I've written that I could just cannibalize.

Great, thankee kindly.

> Would this be a one-off program or something that you need to run daily?

Basically one-off, not something production-quality. I may have need to run it again eventually.

> Should your output CSV have the STATE as well? or is there going to be one CSV per
> state?

No, STATE is not important, although the complete filename with path would certainly not go amiss since the plan is to only have one CSV. Basically the goal is to partially automate comparing to see if CITY1 matches CITY2. If it's completely off, then usually it will mean that the content of the file had been overwritten but the filename remained unchanged. This however does not check for the case where NAME or PHONE no longer match CITY2, but the only way I have to check for that case is manually. On over 1000 files. Arrgh!

I was however wrong about the cutoff ASCII within the file. The file content is more like this:

...header...
NAME Joe Smith
CITY2 Detroit
PHONE 3015551212
IMAGE encoded monochrome image
...other fields...
...footer...


- Stiletto







Entire thread
Subject Posted by Posted on
* Batch file processing... StilettoAdministrator 03/29/07 08:12 AM
. * Re: Batch file processing... krick  03/29/07 08:58 PM
. * Re: Batch file processing... StilettoAdministrator  03/30/07 11:00 AM
. * Re: Batch file processing... krick  03/30/07 09:08 PM
. * Re: Batch file processing... StilettoAdministrator  03/31/07 09:48 AM
. * Re: Batch file processing... Anonymous  04/02/07 07:26 PM
. * Re: Batch file processing... StilettoAdministrator  04/03/07 08:03 AM
. * Re: Batch file processing... Anonymous  04/06/07 02:17 PM
. * Re: Batch file processing... StilettoAdministrator  04/07/07 07:56 AM
. * Re: Batch file processing... Anonymous  04/07/07 10:18 AM
. * Re: Batch file processing... StilettoAdministrator  04/11/07 09:45 AM
. * Re: Batch file processing... R. Belmont  04/16/07 05:48 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 49 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4020