In this chapter you will get practice question of File Handling. You must resolve programming problems using your understanding skills.
StudentFolder in D drive using
- Ask student’s name and create a file with that name and store in Student folder.
- Ask student’s details and save information in that file.
- Print following option on console screen.
- View Saved File
- View Directory Details
Output will be like this
Please Enter your Name :
Steven Clark file is created at D:\Student\Steven Clark.txt
Please Enter your Details. Your Name:
Your Age :
Your Current City :
Your Subject :
Information Saved on D:\Student\Steven Clark.txt
Select What you want Next.
Press 1 to view Saved File
Press 2 to view Directory Info
Press any key to Exit.
Student Name : Steven Clark
Age : 22
City : LA
Subject : Computer Science
File Handling Practice Question will help you to solve real world programming problems. In the next chapter you will learn Inheritance in c#.