Results 1 to 2 of 2
  1. #1
    rickytweng is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default how to open mp3,jpg or any other media or text file

    hi,i'm writing a program that accepts the file path to a file. what i'd like to know is how do i open that file,
    where it be a mp3 file that would open in media player or a doc file that would open in MS word or
    any other file and the corresponding program to open it.

    thanks in advance

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default Re: how to open mp3,jpg or any other media or text file

    That sounds like an OS function: Deciding what app to open for a specific file.
    Look at the Desktop class.

Similar Threads

  1. Replies: 2
    Last Post: 09-05-2011, 12:38 AM
  2. Replies: 1
    Last Post: 07-28-2011, 07:50 PM
  3. Replies: 0
    Last Post: 12-09-2010, 05:56 PM
  4. text editor does not open file
    By globo in forum Advanced Java
    Replies: 2
    Last Post: 11-21-2010, 07:39 PM
  5. How correctly open text file?
    By artemff in forum CLDC and MIDP
    Replies: 3
    Last Post: 12-23-2009, 06:39 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
  •