Skip to content

Commit dee6dce

Browse files
authored
Add files via upload
1 parent c52c41c commit dee6dce

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

File_Hanling/file handling.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# open file
3+
f = open("input00.txt")
4+
5+
# open image for read binary mode
6+
f = open("image.bmp",'r+b')
7+
8+
# use defalt encoding 'utf-8'
9+
# if we working file with text mode encoding type is highly recomend
10+
11+
f = open("test.txt",mode = 'r', encodnig = 'utf-8')

File_Hanling/input00.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
5
2+
2 3 6 6 5

0 commit comments

Comments
 (0)