Hi,

I'm very new to programming and Python. I need to process two separate files, one containing words, the other frquencies of these words. What is the best way to process these files and obtain a new file with frequencies*words in there? Btw i'm afraid the files cannot be read into memory entirely because of the size...

thankx, Ber

Can you give sample of the first ten lines of each file?

If the lines match (word and number), then you can read in one line from each file at a time, process and write/append back out.

The problem is that they don't have the same line numbers...

There has to be some association between those two files. Don't keep us in suspense.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.