??? ไม่ทราบว่า Delphi สามารถ หา path File ที่ต้องการทำได้ยังไงครับ System.IO คืออะไรครับ
มี code
program Project1;
{$APPTYPE CONSOLE}
uses
System.IO;
var
DirInfo : System.IO.DirectoryInfo;
Path : String;
Files : Array of FileInfo;
i : Integer;
begin
// Get the current folder
Path := System.IO.Directory.GetCurrentDirectory;
Console.WriteLine('Files in : ' + Path + ' :');
Console.WriteLine;
// Create our directory info object
DirInfo := System.IO.DirectoryInfo.Create(Path);
// Get the files in this folder
Files := DirInfo.GetFiles;
// Display the files - just the file names that is
for i := 0 to Length(Files)-1 do
Console.WriteLine(Files[i].Name);
Console.Readline;
end.
แต่Run แล้ว Error ที่ System.IO