I am working on a project where I access data locally (via Dropbox). I am having trouble finding a method to take the numbers from the data file. I can take the entire data file, which is relatively small, but I want to sort through and just collect the decimal values, I don't care for the text. Finding the useful functions and how they work has been a challenge. Curious if anyone on here had any method to point me in the right direction. Looking for particular functions that can assist me. If not, thanks anyhow.
getnumberstest2() updating;
vars
file : File;
source : String;
line : String;
test2 : String;
test3 : Array;
cust : Customer;
i : Integer;
pizza : DecimalArray;
begin
create file transient;
file.fileName := "C:\Users\Chris\Dropbox\Capstone\ChrisQ\SAgent1.txt";
file.kind := File.Kind_Unknown_Text;
file.mode := File.Mode_Input;
file.open;
i := 1;
beginTransaction;
while not file.endOfFile do
line := file.readLine;
test2 := line[1:end];
create cust;
cust.source := test2[i];
write test2[i];
write test2;
test3 := test2[1]; //This is the incompatible types error
endwhile;
commitTransaction;
epilog
delete file;
end;