Depending on your platform and environment, you might be able to treat the
text file as a database, and use JDBC to work with it. For example, I know
you can access a CSV text file through ODBC on Windows.
--
Martin Cooper
Tumbleweed Communications
----- Original Message -----
From: "Larry Liu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 01, 2000 1:02 PM
Subject: File Parsing
> Hi:
>
>
> I have a flat text file exported from database, each record is in one line
> with line delimiter. Within one line of a record, there are delimiters for
> each field of data.
> The txt file could have large amount of data. I want to use this text file
> as an external data source read them into memory and parse them then
follow
> my business
> logic to handle these data finaly put them into my data server. The
> questions are:
>
> 1. I certainly have to set buffer size to read number of records into
memory
> instead of whole file into buffer. Does anyone have any suggestions on it
> to handel it more efficiently?
> 2. I have to parse the number of records by the predefined delimiters.
Does
> anyone have any suggestions to parse data more efficiently?
> 3. Can anyone sugest me on Session bean level or servlet level issue?
>
>
> Thanks
>
>
> Larry
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets