Help With file output

Hi, I am trying to get this program to write out the inputted information onto the file "parts.txt", however it is filling the .txt file with garbage and huge numbers.
The code is here: http://www.mediafire.com/view/59y9636w582v8qh/Projectfix.cpp

Can someone help?
Topic archived. No new replies allowed.