Question: Code in C++ textfile1.txt textfile2.txt textfile3.txt Function returning value/reference Exercise 3 (60 minutes coding): A brief file I/O demonstration program, and an input file for
Code in C++




textfile1.txt


textfile2.txt


textfile3.txt


Function returning value/reference Exercise 3 (60 minutes coding): A brief file I/O demonstration program, and an input file for it. TODO - answer all questions and write programs: 1.Please check the file operation example files: FileDemo.cpp and rats.dat O. 2. Please name your answer file as "AnswersToFileDemo.txt." 3. Write a program named "FileOperation Practice.cpp." 4. This program should have a main function. 5. In your program Read a text file that contains integers, print out each integer to "cout" and stop when you hit the end of file. Use this program to read and display the contents of three different text files (textfile1.txt, textfile2.txt . textfile3.txt ) that contain the same numbers but use Unix/Linux, Windows/DOS, and Mac OS end of line characters. Do you encounter any problems? Does it matter what OS you're developing your code on? See if transferring these files from, say, a Windows machine to a Linux machine alters them by checking their ASCII contents using the Linux od -a command (Examples (Links to an external site.) to use the od command). Take away for Exercise 3: Simple file I/O Appreciation for subtle text file storage differences FileDemo.cpp: Defines the entry point for the console application. EKKER Modified by Yang Peng on 12/31/17 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
