FileLock filelock = null;
PrintWriter printwriter = null;
try
{
FileObject fileobject = result.getPrimaryFile();
filelock = fileobject.lock();
printwriter = new PrintWriter(new OutputStreamWriter(fileobject.getOutputStream(filelock)));
DateFormat dateformat = DateFormat.getDateTimeInstance(1, 2);
printwriter.println("//\n// " + result.getName() + ".idl\n//\n// Created on " + dateformat.format(new Date()) + "\n// by " + System.getProperty("user.name") + "\n//\n");
printwriter.println("\n ");
printwriter.println("#ifndef __" + fileobject.getPackageNameExt('_','_') + "__" );