File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,20 @@ object.close()<br>
15
15
While creating or opening a file, we need to enter the mode that we want it to open in. Some of the modes are :
16
16
17
17
Name of mode | Keywords | Syntax
18
- <<<<<<< HEAD
19
- :--|:--|:--|
20
- =======
21
18
:--|:--|:--|:-:
22
- >>>>>>> b572a16f9286bdca9a0ba34b8c25fa6c83ec12b4
23
19
Read | r | open('file_name', 'r')
24
20
Write | w | open('file_name', 'w')
25
21
Append | a | open('file_name', 'a')
26
22
27
23
Example :<br ><br >
24
+
28
25
<img src =" images/img1.PNG " ><br >
26
+
29
27
Output : Hello!, My name is Jake.<br >
30
28
31
- <<<<<<< HEAD
32
29
The above example is of creating a file and printing it.
33
- =======
30
+
31
+ Output : Hello!, My name is Jake.<br >
32
+
34
33
The above example is of creating a file and printing it.
35
- > > > > > > > b572a16f9286bdca9a0ba34b8c25fa6c83ec12b4
34
+
You can’t perform that action at this time.
0 commit comments