Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def convert(filename)
- destinationName = "output.txt"
- file = open(filename, 'r')
- destination = open(destinationName, 'w')
- counterLine = 0
- for line in file:
- counterLine += 1
- if counterLine > 3:
- newLine = ''
- for letter in line:
- if letter != ',':
- newLine += letter
- destination.write(newLine)
- # MAIN FUNCTION
- filenames = ["Wilkinson_normS21.TXT", "Wilkinson_normS21.TXT"]
- for filename in filenames:
- convert(filename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement