Results 1 to 2 of 2

Thread: How to reference my file

  1. #1
    Join Date
    Jul 2011
    Beans
    1

    Question How to reference my file

    Hi there.

    I create a program on Java that read my File.log this is made in windows. And to look the file i reference like this in my DB PostgreSQL "C://Example//Documents//Archivo.log" .. now im doing the same but in Ubuntu when i reference my file "//home//Example//workspace//Archivo.log " .. it doesn't found it in ubuntu.

    My question is how is the right way to reference my file to find it in ubuntu.

    I hope i can made my self clear. Sorry for my bad english.

  2. #2
    Join Date
    May 2011
    Location
    /World/NZ/Auckland
    Beans
    441
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to reference my file

    It may be because you have double "/", when you only need one. Try again with
    Code:
    /home/example/workspace/Archivo.log
    Also, run the command
    Code:
    locate Archivo.log
    and check that the file path it outputs is /home/example/workspace/Archivo.log. If it outputs a different file path, substitute that file path.
    "Ubuntu speaks of the very essence of being human. It is to say, 'My humanity is caught up, is inextricably bound up, in yours.'" - Rev. Dr. Desmond Tutu.

    Don't forget to mark your thread as [SOLVED] (Here's how)

Tags for this Thread

Bookmarks

Posting Permissions

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