1) Why i used this code :
assert( fileExists (FDataDir + DirectorySeparator+'WaveSim'+ DirectorySeparator+'oki.txt'), 'No Oki.txt - File');
AssignFile(F,FDataDir + DirectorySeparator+'WaveSim'+ DirectorySeparator+'oki.txt');
because normally when i want to put directory for my map i used :
AssignFile(F,'D:\\Smad-Lock(Brankas_Smadav)\\#MATH MODEL#\\JakartaOk7_Edit\\JakartaOk7\\JakartaOk\\oki.txt');
Assert makes sure the some axioms are set.
Here: that the file exists.
You used an absolute path.
This is fine as long you are the only on to run your App.
But no one else can run your app.
And not even you when you move it to another computer.
So you should set it to something relative to your Exe , or your Home-Dir, or somthing more project related.
2) Could you explain, what you mean with directory separator? sorry, but i am confused
DirectorySeparator is replacement for '\' on windows, and '/' on Linux or whatever character an operating system is using to separate directories in a path.
I have a strict separation between files.
Project, source, data and binary-files are each in separate folders. (So i can switch between compilers, computers, os's ... )
Project: .\fpc, .\dxe, .\d7 ...
Source: .\source
Data: ..\data\<pro>
Bin: ..\bin\<target>
Units: ..\bin\<target>\units
To get the thing running I had to move your data-files.
in your case I suggest you initialize FBaseDir to 'D:\\Smad-Lock(Brankas_Smadav)\\#MATH MODEL#\\JakartaOk7_Edit' or whatever you see as your basic Project-path.
and fill the rest in like + DirectorySeparator+'JakartaOk7'+ DirectorySeparator+ 'JakartaOk'+ DirectorySeparator+