It is currently Wed Apr 16, 2014 5:14 am




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
 how to delete text file 
Author Message
Trooper
Trooper

Joined: Fri Jun 01, 2012 4:00 am
Posts: 10
Post 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
Profile
General
General

Joined: Tue Mar 24, 2009 9:14 am
Posts: 781
Location: Hudson, MI
Post 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
Profile
Trooper
Trooper

Joined: Fri Jun 01, 2012 4:00 am
Posts: 10
Post Re: how to delete text file
is this for linux environment?


Fri Jun 29, 2012 9:55 pm
Profile
General
General

Joined: Tue Mar 24, 2009 9:14 am
Posts: 781
Location: Hudson, MI
Post 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
Profile
Trooper
Trooper

Joined: Fri Jun 01, 2012 4:00 am
Posts: 10
Post Re: how to delete text file  Topic is solved
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
Profile
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 


Who is online

Users browsing this forum: Serhii and 0 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

Search for:
Jump to: