Create Text File Using Python 👍🧑‍💻

Published: 18 December 2023
on channel: Work With Python
88
like

Please like share and subscribe channel 🙏 for more videos.

Codes:-
#Create a text file using python:-


myobject=open("harish.txt","w")
lines=["Hello how are you\n",
"Iam fine and presently in Jodhpur Raj.\n",]
myobject.writelines(lines)
myobject.close()
myobject=open("harish.txt","r")
str=" "
while str:
str=myobject.readline()
print(str,end=' ')
myobject.close()


On this page of the site you can watch the video online Create Text File Using Python 👍🧑‍💻 with a duration of hours minute second in good quality, which was uploaded by the user Work With Python 18 December 2023, share the link with friends and acquaintances, this video has already been watched 88 times on youtube and it was liked by like viewers. Enjoy your viewing!