28-12-2018, Saat: 20:44
Merhaba, db yolunu "DBAdres.txt" alacağım fakat,
First chance exception at $74B41812. Exception class EFOpenError with message 'Cannot open file "C:\Users\Ahmet\Desktop\Projeler\Sistem Sqlite VCL\Win32\Debug\DBAdres.txt". Sistem belirtilen dosyayı bulamıyor'. hatası alıyorum bu sorunu nasıl çözerim???
First chance exception at $74B41812. Exception class EFOpenError with message 'Cannot open file "C:\Users\Ahmet\Desktop\Projeler\Sistem Sqlite VCL\Win32\Debug\DBAdres.txt". Sistem belirtilen dosyayı bulamıyor'. hatası alıyorum bu sorunu nasıl çözerim???
procedure TForm3.DBAdresTxt(Sender: TObject); var SList: TStrings; begin SList := TStringList.Create; try SList.LoadFromFile(ExtractFilePath(Application.Exename) + '\DBAdres.txt'); if fileexists(SList.Text) then // Klasör var mı? begin showmessage('Var'); end else begin showmessage('Yok'); end; finally SList.Free; end; end;