|
|
|
It is currently Tue Jun 18, 2013 10:16 pm
|
View unanswered posts | View active topics | View unsolved topics
|
Page 1 of 1
|
[ 5 posts ] |
|
| Author |
Message |
|
mubin
Trooper
Joined: Fri Jun 01, 2012 4:00 am Posts: 10
|
 how to delete text file
how to delete a text file programmatically in ignition by using event client scripts? and what is script for this? please anyone give me the solution for this.
|
| Thu Jun 28, 2012 9:53 pm |
|
 |
|
JordanCClark
General
Joined: Tue Mar 24, 2009 9:14 am Posts: 661 Location: Hudson, MI
|
 Re: how to delete text file
short example: Code: import os os.remove("c:\\temp\\readme.txt")
_________________ Jordan
Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.
|
| Fri Jun 29, 2012 2:43 am |
|
 |
|
mubin
Trooper
Joined: Fri Jun 01, 2012 4:00 am Posts: 10
|
 Re: how to delete text file
is this for linux environment?
|
| Fri Jun 29, 2012 9:55 pm |
|
 |
|
JordanCClark
General
Joined: Tue Mar 24, 2009 9:14 am Posts: 661 Location: Hudson, MI
|
 Re: how to delete text file
the specific example script was for a Windows file. Just put whatever path to the file inside the quotes and you should be good to go. 
_________________ Jordan
Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.
|
| Sat Jun 30, 2012 1:09 am |
|
 |
|
mubin
Trooper
Joined: Fri Jun 01, 2012 4:00 am Posts: 10
|
 Re: how to delete text file 
JordanCClark wrote: the specific example script was for a Windows file. Just put whatever path to the file inside the quotes and you should be good to go.  thank you it is worked under linux also
|
| Sat Jul 28, 2012 3:33 am |
|
 |
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: Google [Bot] and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|