in reply to Re: Out of Memory Error : V-Lookup on Large Sized TEXT File
in thread Out of Memory Error : V-Lookup on Large Sized TEXT File
Thanks Marshall for the reply.
Actually, The requirement is more like V-Lookup functionality in Excel. Except for two columns, we have two files.
It means that, There is a file A which is large in size in range of 150-200 MB. This file A contains information about work orders (like Order No, Order Name, Supplier No, Supplier Name, Created Date...and so on)
There is another file B, which contains only Supplier No for particular region. This file is generally less than 1 MB..around 700 KB something.
Now, I have to write those records in file C (a new file, kind of output file) for which Supplier No in file B matches with Supplier No in file A.
So, If you look at the code that I have written, I take the file B contents in a list & then for each Supplier No in file B, I iterate the large file A line by line & check if Supplier No is present in the line. If so, I write the line into file C.
Can you please suggest now, where I am going wrong?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Out of Memory Error : V-Lookup on Large Sized TEXT File
by BrowserUk (Patriarch) on May 03, 2015 at 09:32 UTC | |
|
Re^3: Out of Memory Error : V-Lookup on Large Sized TEXT File
by Marshall (Canon) on Jun 07, 2015 at 12:18 UTC | |
|
Re^3: Out of Memory Error : V-Lookup on Large Sized TEXT File
by Marshall (Canon) on May 09, 2015 at 02:40 UTC |