There is no reason to use threads for this. Open both files, read from one file, compute your sum, and write it to the second file. When the reading file is at the end, close both files.
There is no reason to use threads for this. Open both files, read from one file, compute your sum, and write it to the second file. When the reading file is at the end, close both files.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks