Code
file=open(r"C:\Users\Owner\Documents\Python\Apparel store\Python\Practical File\File Handling\student.txt","w")
n=1
while n=="1":
l=[]
rollno=int(input("Enter rollno:"))
l.append(rollno)
name=input("Enter name:")
l.append(name)
file.writelines(l)
n=int(input("Enter 1 to add more record(s):")
file.close()
Output
RESTART: C:\Users\Owner\Documents\Python\Apparel store\Python\Practical File\File_handling.py
**Issue**
*I cannot enter list into text files using write mode, I dont receive any errors, just the above output.*
*I have noticed that the output does not include* `student.txt` *in the directory of the output, how do I solve this?*
`RESTART: C:\Users\Owner\Documents\Python\Apparel store\Python\Practical File\File_handling.py`