Question: Write a method called splitFile(). It should open a filed named input_num.txt. This file should contain a list of integers, which each integer separate
Write a method called splitFile(). It should open a filed named input_num.txt. This file should contain a list of integers, which each integer separate by a comma: 5,4,2,-9,0,444,345,675,56,44,77,22,37 Your method should iterate through all of the integers on the first line of nums.txt. You should then append the even integers to a file called "evens.txt" with the ';' character as the delimiter (and no newline) and the odd integers to a file called "odds.txt" with " character as the delimiter (and no newline
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
