paint-brush
Python Basics: File Handlingby@kalebujordan
281 reads

Python Basics: File Handling

by Kalebu Jordan 4mNovember 16th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Python Basics: File Handling is a basic tutorial on how to open, read, manipulate, and save files in python. You can open a file in python in different modes such as reading mode, writing mode, appending mode, binary mode, and etc. You can also use the open() function to read a file and manipulate it in just one line of code. For instance, let’s try reading quotes.txt from a file which contains quotes as shown below;. After each line, we print a line of stars on a specific specific line;.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Python Basics: File Handling
Kalebu Jordan  HackerNoon profile picture
Kalebu Jordan

Kalebu Jordan

@kalebujordan

I'm a Mechatronics engineer | Pro Python Developer | AI Enthusiast

Learn More
LEARN MORE ABOUT @KALEBUJORDAN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Kalebu Jordan  HackerNoon profile picture
Kalebu Jordan @kalebujordan
I'm a Mechatronics engineer | Pro Python Developer | AI Enthusiast

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Coffee-web