forked from navinreddy20/Python-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
68 File Handling.txt
41 lines (29 loc) · 888 Bytes
/
68 File Handling.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
demo.py
--------------------------------------------------------------------------------
#
# f = open('MyData','r')
# # print(f.read())
# # print(f.readline(4),end="")
# f1 = open('abc','a')
# # f1.write("Something")
# # f1.write("People")
# # f1.write('Mobile')
# f = open('MyData','r')
#
# f1 = open('abc','w')
#
# for data in f:
# f1.write(data)
f = open('mumbai.jpg','rb')
f1 = open('Mumbaii.jpg','wb')
for i in f:
f1.write(i)
-------------------------------------------------------------------------------- MyData
--------------------------------------------------------------------------------
My Name is Navin Reddy
Telusko on Youtube
Programming and Technology Videos
Corporate Trainer
Mumbai
Subscribers
Asus Laptop