Author Topic: Deleting a file [solved]  (Read 922 times)

I am trying to delete a file using the functions:

Code: [Select]
%file = new fileObject();
%file.openForAppend("Config/client/AdamBot/Learning/" @ %word @ ".txt");
%file.delete();
But that only deleted the file OBJECT, I want to delete the file itself.
« Last Edit: April 21, 2012, 11:18:25 AM by adam savage »

i also want to know this

try fileDelete("File/Path");


the delete method generally does what the name implies. it deletes the object it's called on.

sorry if that sounded rude

Not everyone knows how to code so props to him for for trying.

Not everyone knows how to code so props to him for for trying.
adam knows how to code he just sometimes isn't very good at math


but he'll get better and one day i'm sure he'll be pretty good at math nearly all the time

adam knows how to code he just sometimes isn't very good at math


but he'll get better and one day i'm sure he'll be pretty good at math nearly all the time
When was I bad at math?

When was I bad at math?
you clearly do not understand the meaning of 'not very good at math'

go see your english teacher and (s)he will explain

The problem he had was not even maths related though?

The problem he had was not even maths related though?
nobody but you and adam said anything about arithmetic skill :(

nobody but you and adam said anything about arithmetic skill :(
ikr?