From: Mike H. <mh...@gm...> - 2008-12-07 00:16:49
|
I want to be able to read in a file and output it to a graphical window. I tried this: def read(): in_file = open("test", "r") data = in_file in_file.close() swing.JOptionPane.showMessageDialog(None, data) It results in: <closed file 'test', mode 'r' 1> Can somebody point me in the right direction as to how to display this data? Here's a sample of 'test': 2008-11-28 22:26:41.404370 Testing And that would be followed by more dates and text entries. Thanks for any assistance, -- Mike Hoy |