RE: Multiple files reading

2016-06-14 Thread Joaquin Alzola
> What I meant was that you would have a dict of dicts, where the key was the > country: Thanks MRAB I could not see that solution. That save me a lot of lines of code. Certainly my previous solution also manage to do that but yours is more clean-code wise. This email is confidential and may be

Re: Multiple files reading

2016-06-14 Thread MRAB
On 2016-06-14 21:06, Joaquin Alzola wrote: > >> The dictionary that I am using in the classes: > >> {'Country':'Empty','Service':'Empty','TimeStamp':'Empty','Ocg':'see3', > >> 'DiameterCodes':{'2001':0,'4010':0,'4012':0,'4998':0,'4999':0,'5007':0 > >> ,'5012':0}} > >> > >> Wanted help from your si

RE: Multiple files reading

2016-06-14 Thread Joaquin Alzola
>> The dictionary that I am using in the classes: >> {'Country':'Empty','Service':'Empty','TimeStamp':'Empty','Ocg':'see3', >> 'DiameterCodes':{'2001':0,'4010':0,'4012':0,'4998':0,'4999':0,'5007':0 >> ,'5012':0}} >> >> Wanted help from your side on how to focus this just because I want to read >>

Re: Multiple files reading

2016-06-14 Thread MRAB
On 2016-06-14 17:53, Joaquin Alzola wrote: Hi Guys I am doing program that reads into a directory for the files that were created the last 5 mins. (working) Inside those files there are 242 fields in each line separated by | (pipe). Each file has about 5k records and there are about 5 files