Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

FileOutputStream to Different Directory

Thread view: 
bwilde@gmail.com - 17 May 2006 19:16 GMT
Hello,

I'm trying to get Java to create a file in a new directory (which
already exists).  Using FileOutputStream, I've been able to create a
new file, but it always puts it into the same directory (as far as I
can tell, there is only one argument for file name... nothing for
path).  Is there some way to specify another path?

Thanks,
Ben
Jan Peter Stotz - 17 May 2006 20:38 GMT
bwilde@gmail.com schrieb:

> Hello,
>
[quoted text clipped - 3 lines]
> can tell, there is only one argument for file name... nothing for
> path).  Is there some way to specify another path?

Have you tried to include the path into the filename?

Jan
Dale King - 18 May 2006 18:22 GMT
> bwilde@gmail.com schrieb:
>
[quoted text clipped - 7 lines]
>
> Have you tried to include the path into the filename?

Or the constructor that accepts an instance of File?

Signature

 Dale King



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.