How do I find file names with extension ogg

  • Hello, please, I have this program and I just want to add the name of list files with extension ".ogg".

    The question is:

    How to find out what file names have extension ogg ?.

    What condition would have to use in the "for" bucle?

  • For loop..

    Add another contition (System : Compare two values)

     tokenat(NWjs.ListAt(loopindex),1,".")="ogg".....................List.. Add item NWjs.ListAt(loopindex)[/code:pcpot4gb]
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • For loop..

    Add another contition (System : Compare two values)

     tokenat(NWjs.ListAt(loopindex),1,".")="ogg".....................List.. Add item NWjs.ListAt(loopindex)[/code:udvcbcas]
    

    Ok I have it, thanks.

    Please a last cuestion.

    My application is for Android.

    I want to get all file names that exist in the "FX" game folder when installed.

    How I should specify the directory path ?.

    What kind of path I should point?.

  • My application is for Android.

    with NW.js?

    [quote:1fqnqsz4]The NW.js object allows access to features specific to the NW.js exporter, such as reading and writing files to the local disk drive.

    ....

    NW.js exports Linux, Mac OS X and Windows desktop apps.

  • Demons, then what choice do I have to read my audio files of my sound effects directory in android ?.

  • if you export with Cordova,I think that you need cordova-plugin-file

    you can find plugins for C2.. here

    [quote:2us5rmyc]Cordova File: read, write file, append file, remove file, copy file, move file, get directory entries and create directory.

    [android, blackberry10, ios, windows8, wp8] [cordova cli] [xdk] [cocoon] [phonegap build service]

    ...but I may be wrong..so to find a second opinion before you buy anything.

  • Ok, I will investigate to see if these plugins could help.

    Thanks men.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)