Results 1 to 5 of 5
  1. #1
    Gambit17 is offline Member
    Join Date
    Nov 2007
    Posts
    7
    Rep Power
    0

    Default Adding file names(Help!!)

    Hi,

    I am busy writing a programm that stores songs(the names, artists, albums-"metadata") into arrays.

    At the moment i just ask the user for input, but i would like to ask the user from which file he would like to get the data and then for instance he chooses my music folder, java will extract the metadata from the song files in the my music folder and store it in an array.

    At the moment my array are so: String[] strArr = new String[100][4];
    with the 4 being equal to artist, track, album, date added,.
    could i import the song names and store them in in that array.

    is all of this possible?
    thnks for your help.

  2. #2
    bar311 is offline Member
    Join Date
    Nov 2007
    Posts
    7
    Rep Power
    0

    Default

    yes.... you have to add another column to your array for the song names

  3. #3
    Gambit17 is offline Member
    Join Date
    Nov 2007
    Posts
    7
    Rep Power
    0

    Default

    why, the song names is stored in the column[4].?
    for example
    song names will be stored in strArr[0]
    song artists will be stored in strArr[1]
    song album will be stored in strArr[2]
    song dateAdded will be stored in strArr[3]
    yip.

  4. #4
    bar311 is offline Member
    Join Date
    Nov 2007
    Posts
    7
    Rep Power
    0

    Default

    ok so that will be it, what do you mean about your question "could i import the song names and store them in in that array" ?

  5. #5
    carderne is offline Senior Member
    Join Date
    Nov 2007
    Posts
    160
    Rep Power
    7

    Default

    What he means is that he wants to create a program that will import song names from the metadata stored within the songs (that iTunes/WMP creates).

    He then wants to store the metadata in a nested array:
    String[][] songs = new String[amountSongs][4]

Similar Threads

  1. Names pipes in java
    By Zept in forum Networking
    Replies: 2
    Last Post: 08-06-2011, 08:20 PM
  2. Adding file contents to Choice component
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-07-2008, 09:06 AM
  3. Drive names
    By alwz_nikhil in forum New To Java
    Replies: 0
    Last Post: 11-28-2007, 10:04 AM
  4. how to get the names of the files
    By mary in forum Advanced Java
    Replies: 2
    Last Post: 08-05-2007, 04:01 AM
  5. building file and variable names from variables
    By madad2005 in forum New To Java
    Replies: 2
    Last Post: 07-18-2007, 04:47 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
  •