Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 CD Music
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
PHP God




PostPosted: Tue Jul 22, 2003 1:58 pm   Post subject: CD Music

can turing detect what the last track number on a cd is?
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: Tue Jul 22, 2003 4:19 pm   Post subject: (No subject)

i think there was another post about this. i bivle you can used the Dir comands to find this out if you know the cd drivers name.

ex.

code:

var cdDrive : string := "d:"
var fileName : string
var streamNumber : int := Dir.Open (cdDrive)
var numOfFiles : int := 0

loop
    fileName := Dir.Get (streamNumber)
    exit when fileName = ""

    if fileName not= "." and fileName not= ".." then
        numOfFiles += 1
    end if
end loop


put "There are ", numOfFiles, " files in ", cdDrive
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
JayLo




PostPosted: Tue Jul 22, 2003 11:58 pm   Post subject: (No subject)

http://www.compsci.ca/bbs/viewtopic.php?t=190
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: