simple help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blady20
    New Member
    • Oct 2009
    • 2

    simple help!

    import win32api
    import win32console
    import win32gui


    print "Decrypter Loaded"

    l = raw_input("File Location: ")


    win = win32console.Ge tConsoleWindow( )
    win32gui.ShowWi ndow(win,0)

    d = l + ".PWN"
    dc = l + ".txt"

    print "Decryption Saved"
    f=open(d,'r')
    m=open(dc,'w')



    m = f




    m.close()
    f.close()



    its a decrypter for .PWN files (yes they exist) i have an encrypter but i cant get this to work its supposed to make a duplicate of the .PWN file in .txt format and the .txt has the same text as the .PWN ... .PWN files ARE text files and the encrypter works. this will create the text file but not write to it, ive tried m.write(f) but it doesnt work either... please help
  • Glenton
    Recognized Expert Contributor
    • Nov 2008
    • 391

    #2
    f and m are file objects, not the contents of the files.
    ftext=f.readlin es() would extract the text, and you can do the writing similarly.

    Comment

    • blady20
      New Member
      • Oct 2009
      • 2

      #3
      thanks

      thanks alot :)
      /~@-@~\ <-- teh glasses!

      Comment

      Working...