i tried to solve this but i have a proplem : the q is :
but i have a problem to put every output data in a file , i don't know why plz help me, this is the q:
write a complete c++ program that opens and reads a text file named(c:\mydocs\lists) ,each line of this file contains n integer numbers ,where n is stored at the beginning of each line. your program should read these n integers in each line and write the odd integers to a file called(c:\mydocs\odd.txt) and the even numbers to file called (c:\mydocs\even.txt), the number of lines in the source file are unknown and your program should read lines until the end of the file ,there is an error message if the file dose not exist .