Results 1 to 2 of 2

Thread: file load

  1. #1
    myka is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

    Default file load

    Hi, I need to load a file path from a GUI to my input file reader. GUI gives a string variable of the file path, but this string cannot read by the file reader due to its invalid format.

    example

    Java Code:
    String filePath=file.getName();
    the result for get path is, sometihng like "C:\Users\myka\Documents\Doc1.docx"


    but the file input reader can only read strings like C:\\Users\\

    so some one please tell me a method to convert this

    thanks alot

  2. #2
    myka is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

Similar Threads

  1. load xml file in servlet help please
    By khdani in forum Java Servlet
    Replies: 2
    Last Post: 10-05-2009, 10:28 PM
  2. Load file in GUI instead of notepad
    By Kruptein in forum AWT / Swing
    Replies: 1
    Last Post: 08-08-2009, 05:57 PM
  3. Load file to data structure
    By TinoJF in forum New To Java
    Replies: 4
    Last Post: 03-31-2009, 03:16 PM
  4. Not able to load a properties file
    By Happy9959 in forum New To Java
    Replies: 12
    Last Post: 07-29-2008, 07:15 AM
  5. how to load a file in remote machine
    By christina in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 09:33 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
  •