Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 08:08 PM
geork's Avatar
Member
 
Join Date: Jan 2008
Posts: 14
geork is on a distinguished road
getting a music file onto File
hey guys!
this code isn't wrong but it can never find a file i want it to play.
here is what i did:
Code:
File soundFile = new File("portalmusic.au");
it won't allow me to do
Code:
File soundFile = new File("C:\Documents and Settings\Default User\My Documents\New Folder\portalmusic.au");
please help
__________________
he who laughs last probabely just got the joke
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-03-2008, 05:34 PM
Member
 
Join Date: Dec 2007
Posts: 14
kbyrne is on a distinguished road
Try the full path as you have in your second example but with 2 back slashes or a forward slash instead of the back slach you have there, this might work.

1. File soundFile = new File("C:\\portalmusic.au");
2. File soundFile = new File("C:/portalmusic.au");
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Music File Conversion Dave Almighty Advanced Java 11 04-21-2008 04:30 AM
How to read a text file from a Java Archive File Java Tip Java Tips 0 02-08-2008 10:13 AM
getting a music file onto File geork Advanced Java 0 02-07-2008 08:55 PM
File fp = new File(filePath);fp.exists() does not yeild proper result ganeshp Advanced Java 1 12-27-2007 12:42 AM
count character in text file as input file aNNuur New To Java 0 06-18-2007 07:46 AM


All times are GMT +3. The time now is 12:45 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org