working with files

8 views
Skip to first unread message

Greg Osenbach

unread,
Feb 22, 2009, 1:15:56 PM2/22/09
to e-p...@googlegroups.com
Hello everyone.

I am wishing to use a text file for some temporary storage of some experiment data to use in various other experiments.  I see hope to open a new file and I think I have it down how to write to it.  However I would like to delete the file when I am done with it.  Does anyone know how I can go about doing that?


Thanks,
Greg

David McFarlane

unread,
Feb 23, 2009, 2:57:38 PM2/23/09
to e-p...@googlegroups.com
Greg,

Hmm, I imagine you want to delete the file directly from your E-Prime
program, rather than waiting and then just deleting it manually with
Windows Explorer later. If that is that case, then you want to look
at the "Kill" topic in the online E-Basic Help.

BTW, that was a nice little puzzle -- I actually had to run a full
search in the online E-Basic Help using the term "delete" in order to
find the Kill topic, that was not the obvious answer (although in
retrospect, that keyword is often enough used in systems as a command
to delete files).

Of course, if it really is a temporary file then you might just use
the same file name each time, leave the file in place, and just
overwrite it for each new session. That would spare you the extra
work of deleting the file each time. Just a thought.

-- David McFarlane, Professional Faultfinder

Reply all
Reply to author
Forward
0 new messages