I am looking for a way to strip the blank line and the empty newline at
the end of the text file. I can get the blank lines removed from the
file but it always leaves the end line (which is blank) as a newline. My
code is here and it works but leaves the newline at the end of the file.
How do I
)
if len(words) = 2:
# print (words[1])
outputfile.write(words[1])
When I use just print it prints out fine. Each on a dffrent line just
the way I want it. But writing the file its all on one line. How do I
get the data to goto new lines in the new file?
Alex Nordhus
Copy
Having some trouble with f.readline and python. Specifically looking for
the command to tell it to go and read a specific line.
Alex Nordhus
Keystroke clipboard Copy and Paste !
http://www.pasteaway.com
--
http://mail.python.org/mailman/listinfo/python-list
Alex Nordhus
Simple Solutions
Network/Internet Administrator
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
)
app.MainLoop()
from wxPython.wx import *
import sys
import os
import wx
import tkMessageBox
import commands
#=
class MyDialog(wxDialog):
def __init__(self):
wxDialog.__init__(self, NULL, -1, Pasteaway v1.0 Alex