using input and output files

thank you.
Last edited on
You read and write to different files.

Input "assign5data.text" vs. "assign5data.txt"
Output "assign5.text" vs. "assign5.txt"

Further more in printarray() you keep overwriting the content of the file each time you call printarray()
Topic archived. No new replies allowed.