Lesson
What's A File
When working with on a computer, files are usually used in daily tasks. You may spend your days writing word documents for a news company or you may like to listening to your mp3 files on your free time. You most likely already have an abstract idea of what a file is; a piece of information that's stored on a disk. So what exactly is a file?
Opening A File
A file is just a group of 1's and 0's that are stored on the disk. Since the operating system takes care of managing them, you don't have to worry about their technical details. To use files in Python, you'll needed to use the built-in function open() .
|