#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Posts
    1
    Rep Power
    0

    Wink Reading from .txt file using JSP


    Hi,

    I have some problems reading and writing to a UNIX .txt file.
    This file contains data as below delimited by some character.
    For example, the delimiter is ","

    123,AIRCONDITIONER,456,UITG67,6868686UIK, Suitable for 2-Storey house

    I need to extract the data and display them on a JSP page in a table format
    according to the delimiter.
    After which I need to write the data to another new .txt file.

    Does anyone have any idea on how this can be done??
    Thanks...
  2. #2
  3. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Take a look at FileInputStream, FileOutputStream, and StringTokenizer.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Posts
    45
    Rep Power
    14
    Good suggestions! Also take a look at Iterators

IMN logo majestic logo threadwatch logo seochat tools logo