[opencms-dev] how can I read from a file?
Salvador Santander Gutierrez
salvador.santander.ext at juntadeandalucia.es
Fri Dec 12 10:05:02 CET 2003
You just use the java api
private void writeFile( String fileName, String string )
throws FileNotFoundException, IOException
{
FileOutputStream file = new FileOutputStream( fileName.trim() );
file.write( string.getBytes() );
file.flush();
file.close();
}
don't forget the import
import java.io.*;
----- Original Message -----
From: "Vlachogiannis Evangelos" <evlach at aegean.gr>
To: <opencms-dev at opencms.org>
Sent: Thursday, December 11, 2003 1:28 PM
Subject: RE: [opencms-dev] how can I read from a file?
> You can check the article module. I think it is something like
<cms:include>
> /system....
>
> -----Original Message-----
> From: Nicole Wollgast [mailto:nicole.wollgast at sourcepark.de]
> Sent: Thursday, December 11, 2003 2:26 PM
> To: opencms
> Subject: [opencms-dev] how can I read from a file?
>
>
> Dear CMS - group,
>
> maybe you can help me! :-)
>
> I want to write a dynamic table (in a .jsp).
> Can I read the content of the table from a file?
> How do I do this in .jsp and opencms?
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list