Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python: Making a txt File And Adding Text To It
#1
Code:
x = open("file.txt", "w")
y = raw_input()
x.write(y)
x.close
x = open("file.txt", "r")
x.read
Reply


Messages In This Thread
Python: Making a txt File And Adding Text To It - by nevets04 - 10-15-2009, 08:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Help Dεlluzion 3 1,803 09-30-2019, 12:59 AM
Last Post: samsmith001
  Python to parse text file and get the count of items magicjack89 0 653 06-28-2012, 10:01 AM
Last Post: magicjack89
  Simple Python Python Compiler Canoris 21 8,509 06-01-2011, 06:30 PM
Last Post: Filefinder
  Python 2 vs 3? Jake 8 2,303 12-11-2010, 04:13 PM
Last Post: Bursihido
  Any ebooks for Web Python like making BOF etc? C!RCU!T tr0jAn ☠ 4 1,277 05-12-2010, 02:11 PM
Last Post: Julie

Forum Jump:


Users browsing this thread: 1 Guest(s)