2 package org
.de
.metux
.util
;
4 import java
.io
.IOException
;
5 import java
.io
.FileWriter
;
10 public static boolean store(File file
, String text
)
12 return store(file
.getAbsolutePath(),text
);
15 public static boolean store(String filename
, String text
)
19 FileWriter wr
= new FileWriter(filename
,false);
20 wr
.write(text
,0,text
.length());
33 public static boolean store(String filename
, String text
, String mode
)
35 if (!store(filename
,text
))
38 return FileOps
.chmod(filename
,mode
);