Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] files in aspectj

can files be used in aspectj?
im trying to store the output of a program in a file using the following colde:

public aspect Test
{
FileOutputStream f=new FileOutputStream("test.txt");
before(): //some code 
{
    fo.write("text");
}
after(): 
{
}
}
the above code gives me error.can a file objec be created in an aspect?
i would be glad to get this problem solved as early as possible.
--
Shambhavi Joshi

Back to the top