forked from geekcomputers/Python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestlines.py
More file actions
Latest commit
19 lines (12 loc) · 454 Bytes
/
Copy pathtestlines.py
File metadata and controls
19 lines (12 loc) · 454 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Script Name : testlines.py
# Author : Craig Richards
# Created : 08th December 2011
# Last Modified :
# Version : 1.0
# Modifications : beven nyamande
# Description : This is a very simple script that opens up a file and writes whatever is set "
defwrite_to_file(filename, txt):
withopen(filename, 'w') asfile_object:
s=file_object.write(txt)
if__name__=='__main__':
write_to_file('test.txt', 'I am beven')