IO流练习
题干:
根据指定要求,完成电话记录、
注册、登录
- 注册
题干:
完成【注册】功能:
要求:
- 用户输入用户名、密码存入users.txt文件中
- 若users.txt文件不存在,创建该文件
- 若users.txt文件存在
- 输入文件中已经存在的用户名,提示:用户名已被占用,请重新注册!!!
- 输入用户名、密码正确,保存到users.txt文件中


- 登录
题干:
完成【登录功能】功能:
用户输入用户名和密码完成登录功能
要求:
- 用户输入用户名、密码正确,提示登录成功!
- 用户输入用户名、密码错误,提示用户名或密码错误,请重新登录!!!

