We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c811e8 commit 8f19bb2Copy full SHA for 8f19bb2
testlines.py
@@ -0,0 +1,15 @@
1
+# Script Name : testlines.py
2
+# Author : Craig Richards
3
+# Created : 08th December 2011
4
+# Last Modified :
5
+# Version : 1.0
6
+
7
+# Modifications :
8
9
+# Description : This very simple script open a file and prints out 100 lines of whatever is set for the line variable
10
11
+line="Test you want to print\n" # This sets the variable for the text that you want to print
12
+f=open('mylines.txt','w') # Create the file to store the output
13
+for i in range(1,101): # Loop 100 times
14
+ f.write(line) # Write the text to the file
15
+f.close() # Close the file
0 commit comments