Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function FileExists(const sFileName: string): boolean;
Checks whether a specified file exists.
FileExists returns True if the file specified by sFileName exists, False otherwise.
var mp3File : string;
mp3File := 'c:\My Doucuments\mp3\my_song.mp3'
if not FileExists(mp3File) then begin
ShowMessage('MP3 file ' +#13#10 +
mp3File + #13#10 + 'does not exist!');
exit;
end;
|
Your first MP3 Delphi player
See how to build a full-blown mp3 player with Delphi in just a few seconds. Even more: get the ID3 tag information from a mp3 file and change it!
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|