unit ULoad2;
interface
uses SysUtils,StdCtrls, ExtCtrls,FileCtrl, Classes, Graphics, Controls, Forms,IniFiles, Dialogs;
type tladen= array[1..365] of Integer;
tladend= array[1..365] of TDate;
function GetApplicationDirectory: string;
function loadfileb(n:string; i:TDate):tladen;
var
helpb:tladen;
helpd:tladend;
h: integer;
implementation
function GetApplicationDirectory: string;
begin
GetApplicationDirectory := ExtractFilePath(ParamStr(0));
end;
function loadfileb(n:string; i:TDate):tladen;
var Ini: TIniFile;
dir, help, d,B,K,U:string;
sl,helpf : TStringList;
j,zaehler,l: integer;
begin
dir:=GetApplicationDirectory+n;
sl:=TStringlist.Create;
helpf:=TStringlist.Create;
try
Ini:=TIniFile.Create(dir+n+'.ini'); //Datei in Stringliste laden
ini.ReadSectionValues('BMI', sl);
j:= sl.Count;
Ini.ReadSectionValues('BMI', helpf);
h:=helpf.Count;
finally
Ini.Free;
sl.Free;
end;
end;
end.