I have two .txt files with a bunch of numbers in them, below each other, like this:(adsbygoogle = window.adsbygoogle || []).push({});

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?

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Subtracting numbers in two different txt files

Loading...

Similar Threads - Subtracting numbers different | Date |
---|---|

HP 50G complex numbers with a fraction? | Friday at 7:55 PM |

Limitation of the number of search terms in search engines | Dec 21, 2017 |

Article on Numbers and Computers | Apr 5, 2017 |

Subtraction using 2's complement addition question | Oct 4, 2012 |

How do computers add,subtract,etc? | Apr 9, 2004 |

**Physics Forums - The Fusion of Science and Community**