| New Reply |
Subtracting numbers in two different txt files |
Share Thread | Thread Tools |
| Jan14-13, 09:21 PM | #1 |
|
|
Subtracting numbers in two different txt files
I have two .txt files with a bunch of numbers in them, below each other, like this:
File 1: 3 4 5 File 2: 1 2 1 Now I want to subtract the numbers in file 2 from the numbers in file 1 and get the results in a new .txt file: File 3: 2 2 4 Very simple. I was going to do it in Excel, but I don't have that right now. Does anyone know another easy way? |
| Jan15-13, 02:17 AM | #2 |
|
Admin
|
Use OpenOffice then. Or write Python script. Or post your problem giving enough information about OS and tools available to get a meaningful answer.
|
| Jan15-13, 05:02 AM | #3 |
|
|
If you've got Windows, try VBScript. Read the 2 files into an array, add the elements of the arrays and write the results back out. Here's a link showing how to read and write files: http://easyprograming.com/index.php/...e-in-vb-script
|
| New Reply |
| Thread Tools | |
Similar Threads for: Subtracting numbers in two different txt files
|
||||
| Thread | Forum | Replies | ||
| Subtracting negative numbers | General Math | 14 | ||
| Subtracting two vectors | Introductory Physics Homework | 14 | ||
| Subtracting 3 Vectors | Introductory Physics Homework | 1 | ||
| Subtracting Vectors? | Introductory Physics Homework | 12 | ||
| Subtracting voltages | General Physics | 11 | ||