CD Music
Author |
Message |
PHP God
|
Posted: Tue Jul 22, 2003 1:58 pm Post subject: CD Music |
|
|
can turing detect what the last track number on a cd is? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: 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! |
|
|
|
![](images/spacer.gif) |
JayLo
|
|
|
|
![](images/spacer.gif) |
|
|