Computer Science – File handling | e-Consult
File handling (1 questions)
Login to see all questions.
Click on a question to view the answer
Pseudocode:
- Open file "students.txt" in read mode.
- Create a variable to store each student name (e.g., studentName).
- While the end of the file has not been reached:
- Read a line from the file and store it in studentName.
- Process the studentName (e.g., display it, store it in a list).
- Close file "students.txt".