Where does this file go??

import java.net.URL;
import java.net.MalformedURLException;
import java.io.InputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.FileNotFoundException;
public class Test{
       public static void main(String[] param){
              if(param.length!=4)
              System.out.println("please provide 4 attributes: protocol, host, port, and file");
              try{URL resource = new URL(param[0], param[1], Integer.parseInt(param[2]), param[3]);
              InputStream openResource = resource.openStream();
              //StringBuffer sb = new StringBuffer(param[3]);
              //sb.deleteCharAt(0);
              //String fileName = sb.toString();
              //System.out.println(fileName);
              FileOutputStream toFile = new FileOutputStream(param[3]);
              for(int i = openResource.read(); i!=-1; i = openResource.read())
              toFile.write(i);
              catch(IOException ioe){System.out.println("an ioe occurs");}
              System.out.println("file downloaded");
}java Test http www.xxx.com 80 /file.bla
when I tried the program, it shows me the file is successfully downloaded, but I cant see the file, afterwards I realise the '/' character is not allowed in the Windows Xp.
but why doesn't the program throw an IO exception? if so, the file must exist in some way, do you know where??
thanks

Or better yet, create a File object with the String argument and use that File to open the stream with. Then print File.getAbsolutePath() to determine where it was written.

Similar Messages

  • Where does Log files created for Timesten?

    Hi!
    my question id that where does log file are created ...my timetsen is installed on linux having locations:
    Installation Directories
    Times Ten Registry     /etc/TimesTen
    Default Installation Directory     /d01/app/oracle/tt70/TimesTen/tt70
    Default temporary directory     /tmp
    Instance name     tt70
    Instance Home Directory     /d01/app/oracle/tt70
    Daemon Home Directory     /d01/app/oracle/tt70/TimesTen/tt70/info
    DemoDataStore Directory     /d01/app/oracle/tt70/TimesTen/tt70/info
    Documentation Directory     /d01/app/oracle/tt70/TimesTen/tt70/doc
    LD_LIBRARY_PATH     /d01/app/oracle/tt70/TimesTen/tt70/lib
    Startup Script     /d01/app/oracle/tt70/TimesTen/tt70/startup/tt_tt70
    regards
    Muh.Usman

    The TimesTen daemon message logs are located in the daemon home directory which by default is <tt_install_dir>/info but can be changed to another location at install time.
    A datastore's transaction log files are located by default in the same diredctory as the checkpoint files (specified by the DSN attribute Datastore) but can be placed eslewhere using the DSN attribute LogDir.
    Again, this is all covered in the documentation. With all due respect, this forum is not intended to be a substitute for reading the comprehensive and well written documentation.
    Chris

  • Who knows where does this error message come from

    I have a program wrote with visual age java of ibm.it runs ok in develope page. I exported it in a jar file, it run some minutes and abrrupted with a message like this:
    *** panic: 16-bit string hash table overflow
    abnormal program termination
    who knows where does this error message come from and under which circumstance?

    One thing that comes to mind is that the literal string pool is limited - do you have lots of string literals or itern() lots of strings in your code?

  • I downloaded a word file from an inbox mail (the mail app) onto my iPad2, where is this file stored? How can I delete it if it takes up space in my iPad? Any ideas??

    I downloaded a word file from an inbox mail (the mail app) onto my iPad, where is this file stored? How can I delete it if it takes up space in my iPad? Any ideas??

    Did you ever figure out what happened?
    I had the same experience as you did, but in my case it was a big fat pdf that Mail insisted I had to download before I could view it. As happened with you, I saw the file actually downloading, and after a time I was able to view the pdf. It's been my assumption that the pdf is still somewhere on my iPad, but I have no idea where, nor how to delete it if it is still there.
    Thanks.

  • Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told when I try to buy something in iTunes Store that my "session has expired". Where does this come from?

    Hi, I have a Power Book G4 Tiger 10.4.11 and my problem concerns iTunes 9.2.1(5). I have changed my Apple ID and password recently. Since that, I am told, only when I try to buy something in iTunes Store, that my "session has expired". Where does this come from? What should I do to solve this problem ? I would greatly appreciate your help. Thank you in advance.

    Hi, I am khonthaï. I solved the problem thanks to JHdeVilliers's post on 4 Dec. 2011: I removed all cookies in Safari and it worked immediately !!!

  • I uninstalled Norton AntiVirus.  A request to renew keeps popping up everytime I start the computer.  Where is this file hidden?

    I uninstalled Norton AntiVirus.  A request to renew keeps popping up everytime I start the computer.  Where is this file hidden?

    Not needed from the App Store. Go straight to the developer.
    http://www.devontechnologies.com/products/freeware.html
    Also FindAnyFile, which if you Option click Find will search as root.
    http://apps.tempel.org/FindAnyFile/index.php
    For EasyFind, enter the name of the developer or anything else associated with it.

  • After ripping a CD, where does the file go?

    After I insert a CD into the drive and click "import music" from the CD diretly into iTunes, where does the actual file go on my computer?
    I use windows XP.
    If I rip a cd in windows media player or something else, the actual file goes to My Music folder, where does the file go when I do it in iTunes?
    HELP!

    Thanks for the help, but that folder only contains music i purchased and downloaded from iTunes, it doesn't include music a import from CDs using iTunes.
    Can anyone help?

  • What does this file be used for?

    What does this file be used for: $COHERENCE_HOME/lib/coherence/coherence-client.xml ?
    The contents of this file is show as the following:
    ?xml version='1.0'?>
    <license-document>
      <license>
        <software>Oracle Coherence: Data Client</software>
        <licensee>n/a</licensee>
        <type>production</type>
        <id>0x00A800CC0000011295888F24BC6C730B</id>
        <signature>302C02147737DBFAC8F3931DC9A50EFB78A9DF824414054B0214277CACA4CA2B3D01292FBEB080A18DDCC79DBF0F</signature>
      </license>
    </license-document>What is the difference between $COHERENCE_HOME/lib/coherence/ coherence-client.xml and
    $COHERENCE_HOME/lib/coherence/ coherence-rtc.xml about the purpose of usage?
    Edited by: junez on 30-Nov-2009 08:50

    Hello Junez,
    The coherence-client.xml is for the Data Client.
    The coherence-rtc.xml is for the Real Time Client.
    Please take a look at the following page for more information and let me know if you have anymore questions.
    I am also curious what version of Coherence are you using?
    Best regards
    -Dave

  • Hi, I migrated from PC to Mac, but I can't find some files I had in the PC, this files were invisible but just before migrating I switched off the "hidden" option, ¿Does this files migrated as hidden files or they didn't migrated?

    Hi, I migrated from PC to Mac, but I can't find some files I had in the PC, this files were invisible because I had them as hidden but just before migrating I switched off the "hidden" option, ¿Does this files migrated as hidden files or they didn't migrated?

    If the filename starts with a dot (.thisfile), then it will be hidden on the Mac.
    You can use a 3rd party App, such as EasyFind to search for the file on your Mac, and then re-name (remove the dot)

  • There is a bunch of music in my library under "purchased" that I did not purchase. where does this come from?

    there is a bunch of music in my library under "purchased" that I did not purchase. where does this come from?

    It is possible you accidently added these songs to it. Even though the Purchased playlist is kind of a smart playlist you can still drag and drop songs from your library into it.

  • Where does exe files reside in oracle

    hi,
    Can anyone tell me where does the exe files of the utilities like listener ; sqlplus ; dbca etc reside in oracle?
    thanks

    874275 wrote:
    hi,
    Can anyone tell me where does the exe files of the utilities like listener ; sqlplus ; dbca etc reside in oracle?
    thankswhat is your oracle version and operating system name and version?
    open command command prompt or terminal
    give set command it will show you the path for bin directory
    eg: in windows
    Path=D:\oracle\product\10.2.0\db_2\bin
    in linux
    PATH=/u01/db/app/oracledb/bin
    also check ORACLE_HOME/bin directory you can find.
    Announcement: Forums Etiquette
    Posters, please mind these common-sense rules when participating here:
    - When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended. - When answering a question, please be courteous and respectful; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    - See more tips in the FAQ
    Thanks for doing your part to make this community as valuable as possible for everyone!
    - OTN

  • Where does the file path get reported from?

    When looking at ZAM software information, it'll show the product name and then like:
    c:\program files\something\
    Where does that path information come from?
    The windows registry?
    Or does it actually come from the location of the .exe itself?

    kjhurni,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • TS3968 Where is this file?

    I've looked everywhere or this file and I am having trouble locating it... Can someone please tell me where to look?

    The path seems to have changed:
    ftp://ftp.ni.com/support/labwindows/cvi/Run-Time%20Engines/7.0/win32/

  • Pressing Save in iMac Mail Compose where does the file go

    On my 27" iMac YosemiteMail app tried to press Save button in Compose mode, but can't find the "saved" file .  Where does it go.  And is there a auto-save function in Yosemite Mail?
    George

    There is no an auto-save function in Yosemite Mail
    After making a draft just click on the red button, Mac Mail ask if you want to save the draft,  click on Save.

  • Where does a file called "sun_jch.jar" come from?

    Hi,
    we're using jdk142_05 from Sun with Bea Weblogic on a Sun Fire V240 running Solaris 8.
    Some days ago, as part of a testing, the network interface connecting this server to the database server (Oracle 9) was shut down abruptly while Weblogic was running.
    After restoring the connection to the database, all the applications using that jdk were perfoming very slowly their database queries (even if they were outside Weblogic).
    It took us a long time to determine that a jar file called sun_jch.jar located in the jdk142_05/jre/lib/ext folder was the root cause of the problem.
    It contained a lot of classes related to oracle and their creation date was exactly the date when the connection to the database was cut.
    Does anybody know is this file comes from Weblogic or from the JVM itself? I can not find any information about it over internet.
    Thanks!

    Hello again,
    yesterday I found a tool called "Javac Compiler Helper", available at http://freshmeat.net/projects/jch/.
    I don't know it this tool can anyhow be related to the file I mentioned, as the initials match "sun_jch.tar".
    We're not using this tool, but it's the only thing I've found over Intertet.
    Regards!

Maybe you are looking for

  • Help with this crash report?

    Can anyone give me a hand with this? Safari crashes almost instantly after startup. Date/Time: 2006-11-18 07:59:59.310 +0100 OS Version: 10.4.8 (Build 8L127) Report Version: 4 Command: Safari Path: /Applications/Safari.app/Contents/MacOS/Safari Paren

  • Context mapping problem in FPM

    Hi all, here is a samll example where i am going to display the Attributes from the SELECT perspective to the REVIEW perspective. where the Values from the SELECT View is To be Displayed in the Review view. my Compnents are like.. cctest FcTest Vcfir

  • Deleted names appearing in the "To" line of a new message

    Hi, Everytime I choose an email address to send a new message, after entering one or two letters, my selection of contacts includes addresses that I've deleted in my address book and no longer need. Is there a cache or folder somewhere that I can del

  • I would like for Firefox 4 Beta to save my session like it did in the previous version, how do I set this up?

    Normally when I would close Firefox 3 I would be asked if I wanted to save my session, now in 4 Beta it simply warns me about closing multiple tabs, but I want to save my session.

  • Uninstalling Photoshop 7 from Mac 10.5.4

    Hello, I am using Photoshop CS3 and would like to uninstall PS v.7. Instead of deleting the folder (adobe PS 7)... Is there an better way of doing this? Thank you in advance Carlos