1. Write the statement to open a sequential access file named inventory.txt for input. The file is...
Fantastic news! We've Found the answer you've been seeking!
Question:
1. Write the statement to open a sequential access file named inventory.txt for input. The file is associated with the inInventory object.
2. Write the statement to open a sequential access file named firstQtr.txt for append. The file is associated with the outSales object.
3. A program needs to write the string “INVENTORY” and the string “SALES” to the sequential access file associated with the outFile object. Each string should appear on a separate line in the file. Write the code to accomplish this task.
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Posted Date: