Results 1 to 4 of 4
  1. #1
    Sticks_ll is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default grab the textfile

    Hi I have created a servlet. The HTML bit which allow me to search for a file,

    Java Code:
    out.println("<td><b>Choose the file To Upload:</b></td>");
    out.println("<td><INPUT NAME=\"file\" TYPE=\"file\"></td>");
    but I dont know how to grab that file with Java, so i can sort the textfile into an array.

  2. #2
    moostico246 Guest

    Default

    hello everyone, im new

  3. #3
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    7

    Default

    @moostico, please don't post in someone else's topic if it's not related.

    @sticks, what exactly are you trying to accomplish? it's hard to say what direction you should go without context. for example, what are you trying to do with the file, why do you need java, html, etc. (btw, input tags must be children of form tags to really do anything)

  4. #4
    Sticks_ll is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default

    well i just want to know how to apply a delimiter to this textfile to separate the values. That html code allows me to brows for a file, now I want to be able to manipulate the file using java code.
    Would I use DatainputStream?
    If so how?

Similar Threads

  1. ECG plot in a textfile
    By samson in forum Java 2D
    Replies: 13
    Last Post: 01-28-2012, 05:02 PM
  2. serlvet to import from textfile
    By Sticks_ll in forum Java Servlet
    Replies: 0
    Last Post: 03-25-2009, 07:55 PM
  3. textfile into arrays.
    By Sticks_ll in forum New To Java
    Replies: 27
    Last Post: 03-16-2009, 09:00 AM
  4. Search TextFile
    By gsupriyarao@yahoo.com in forum Advanced Java
    Replies: 5
    Last Post: 04-11-2008, 12:03 PM
  5. Textfile and GUI problems
    By saytri in forum New To Java
    Replies: 2
    Last Post: 12-21-2007, 05:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •