Question: 3. Suppose a batch file name is BatchFile.txt. What command do you use to open the file as write mode? 4. For question # 3,
3. Suppose a batch file name is "BatchFile.txt". What command do you use to open the file as write mode? 4. For question # 3, what command do you use to open the file as append mode? 5. For question # 3, what command do you use to open the file as read mode? 6. Explain set(X) with fixed manipulator 7. Explain setprecision(X) with showpoint manipulator 8. Explain set(X) with left manipulator 9. Explain set(X) with right manipulator 10. What is difference between fstream and ifstream? 11. What is difference between fstream and ofstream? 12. What is difference between ofstream and ifstream? 13. What is a binary file? 14. Suppose you have written integer numbers into in binary file. Write the type-casting command to read it from binary file and store it in an array of integers 15. How do you create a binary file? 16. How do you open a binary file? 17. How do you write to a binary file? 18. How do you read from a binary file? 19. What is difference between text file and binary file? 20. What is function for detecting end of file? 21. What are three things you should do to read data from a file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
