Qu 1. You are assigned to develop a project in which project manager wants following functionality.
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
HintsOutput will be like this
Student Folder Created Successfully at D:\Student
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#.