Understanding Read Function in hindi python


Python programming मे Understanding read function का use Files से Data को read करने के लिए काम आते है। यह Function Binary made में काम कर सकते है। Python programming मे read function निम्नलिखित है।


1) Open():-

इस Function का use File को open करने के लिए काम आता है।

Syntax :-File = Open ('file.txt', 'r')


2) Read():-

इस Function का use file से Data read या पढ़ने के लिए use किया जाता है।

Syntax :-content = file.read()


3) Readline():-

इस Function का use File से किसी एक line को पढ़ने के लिए काम आता है

Syntax:-line = file.readline()


4) Readlines():-

इस Function का use file मे उपस्थित सभी Data को read करने के लिए इसका उपयोग किया जाता है।

Syntax:-lines = file.readlines()


3) close():-

इस function का use file को clase या बंद करने के लिए किया जाता

Syntax:- file.close()

Profile

StudyInHindi

मैं Piyush Thakre, studyinhindi.com का Founder हूं। यह website computer science के student के लिए हिंदी में अध्ययन सामग्री प्रदान करती है। मैं एक अनुभवी वेब डेवलपर हूं और website devlopment में विशेषज्ञता रखता हूं।

•••

All python programing notes in hindi

1

8/18/2024

What is Python in Hindi

Python एक Scripting Language है Pyhton एक High Level Language है....

Read More

2

08/19/2024

Python programing variable in Hindi

This website is very good.This website helped me a lot

Read More

3

08/20/2024

What is Perl programing in Hindi

Perl Object Oriented और procedural दोनो प्रकार के programming Language

Read More

4

08/21/2024

Python and Perl Installation process in hindi

Perl Object Oriented और procedural दोनो प्रकार के programming Language

Read More

5

08/22/2024

Perl Data Types in hindi : (perl data type क्या है)

Perl Object Oriented और procedural दोनो प्रकार के programming Language

Read More

6

08/23/2024

Understanding read function in Python

Python programming मे Understanding read function का use Files से Data को read..

Read More

7

08/24/2024

Understanding write function in python

Python मे write() function का use files मे data को write या लिखने....

Read More

8

08/25/2024

File operation in python in hindi

python programing मे file operation काफी easy था सरल है। जिनकी help से...

Read More

9

08/26/2024

Powerful pattern matching and searching in python

Python मे powerful pattern matching और searching के लिए 're' module का use ..

Read More

10

08/27/2024

Framework in python in hindi (Framework क्या है।)

Python मे framework modules या packages का एक collection होता है जो हमे application ..

Read More

11

08/28/2024

Django and Web2py framework in hindi

Web2py framework का use dynamic web application devlop करने के ..

Read More