File Handling in Python | What is File and Types of Files in Python | Learn python online

Опубликовано: 03 Май 2020
на канале: ViaDigitally
43
2

#FileHandlinginPython
#WhatIsFile
#TypesOfFiles

File handling in python
what is file?
types of files?
file:
1.A collection of related infomation stored into
a particular area on the memory.
This area is called a file.
2. To store the data permanently.
python supports 2 types of files:
1. text files
2. binary files
1. text files:
to store the text information only
i.e. human understandle information.
the files extensions are:
.txt,.html,.c,.cpp,.java,.py
ex: student.txt,emp.txt,bank.txt,hospital.txt
2. binary files:
These files are used to the images, pics,
audio and vidoes information only.
i.e. this information is computer understandble,
but not the human understanble,
because this infomation stored in 0's and 1's format.
the file extension are:
.jpg,.jpeg,.mp4,.....
ex: student.jpg, emp.jpg,bank.jpt,jntu.jpg
india.jpg

file operations in python:
1. To open a file.
This operation is done by open() built-in function
2. writing the data to a file:
write()
writelines()
print()
3. reading the data from the file:
read()
read(n)
readline
readlines()
4. close the file:
close()
5. renaming the file:
rename()
6. delete the file or remove the file.
remove()
------------------------------------------------

►THANKS for taking the time to visit, I hope you SUBSCRIBE and enjoy the upcoming videos!

►Please SUBSCRIBE for More videos:
   / viadigitally  

►If you like this video, Please click on Like and Comment!

►Follow Us on Social Network:

►Facebook:   / viadigitally  
►Twitter:   / viadigitally  
►LinkedIn:   / viadigitally  
► Instagram:   / viadigitally  

Python tutorial for beginners| python programming language tutorial
Python basics | python tutorial for beginners | learn python programming from scratch
Python tutorial for beginners - learn python for machine learning and web development.
Python tutorial for beginners | python programming | learn python | great learning.
Python tutorial for beginners [full course] learn python for web development.


Смотрите видео File Handling in Python | What is File and Types of Files in Python | Learn python online онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ViaDigitally 03 Май 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 43 раз и оно понравилось 2 людям.