Hi How can I delete a file after a certain time? for example if I want to delete a file after 08.30 has passed? do I use import OS? and import time?

Member Avatar
Member Avatar
+0 forum 6

[CODE]def work(here): variabel = "Hi" x1.here(variabel)[/CODE] How can I make here as a local parameter? that will work for calling other functions?

Member Avatar
Member Avatar
-1 forum 9

Hi I have a list of False and True, which I have written to a file. When I read the file, I cant get back to my True and False list.... I only get the ["True","False"] version of it, but I want it to be like this: [True,False] Is it possible to convert it? I have tried bool, it doesnt work.. This is my Read method. [CODE]readfromfile = open(tname,"r") readfromtemp = open(tfname,"r") read1 = readfromfile.read() read2 = readfromtemp.read() self._list = [int(n) for n in read1.split(',')] self._cord = [n for n in read2.split(',')] readfromfile.close() readfromtemp.close()[/CODE]

Member Avatar
Member Avatar
+0 forum 5

How do I read files through another file?

Member Avatar
Member Avatar
+0 forum 11

Hi, how do I write a list to a file on mac os x? I have tried everything..... file = open('test.txt', 'w') mylist = ["rocks","box"] file.write("This doesnt work either") file.write(str(mylist))

Member Avatar
Member Avatar
+0 forum 1

Hi I am fairly new to python. I want to do a seating reservation program containing 32 seats so the users can reserve seats and unreserve seats. I know I need a class that sort of contains the seats, but I dont know how to make it.... I have made a menu so that the user can choose to reserve seats and unreserve seats. the seats should be looking similar like below and when someone reserves a seat it will be marked with *. example like this: *17* 1 2 3 4 5 6 7 8 9 10 11 12 …

Member Avatar
Member Avatar
+0 forum 11

The End.