#516. 操作一个文件,能够向文件中多次输入数据,最后把输入的信息打印出来
操作一个文件,能够向文件中多次输入数据,最后把输入的信息打印出来
题目描述
操作一个文件,能够向文件中多次输入数据,最后把输入的信息打印出来
输入格式
输入文件对应信息
输出格式
获取文件中输入的信息内容
样例
输入样例 1
Alice
20
输出样例 1
Writing to the file
Enter your name: Enter your age: Reading from the file
Alice
20
输入样例 2
Bob
25
输出样例 2
Writing to the file
Enter your name: Enter your age: Reading from the file
Bob
25
输入样例 3
Charlie Brown
30
输出样例 3
Writing to the file
Enter your name: Enter your age: Reading from the file
Charlie
Brown