exitcode = 2, what is it? lazarus / 16-Databases ---------------------------------------------------------------------- Noderius · 2013-08-24 17:32 ok, so here is my problem. i am trying to learn file using stuff and all that, and i tried to write a simple program. in the file input.txt there are 'n'-number of numbers in the massive, and 'a'. i have to find all the numbers<'a' and write them in the beggining, how a program finds it. here is my whole program: . , program stuff(input,output); var i,j,a,k,n,l:LongInt; mas:=array[1..10000]of LongInt; begin assign(input,'input.txt'); reset(input); assign(output,'output.txt'); rewrite(output); readln(n,a); k:=0; for i:=1 to  n do read(mas); for i:=1 to n do begin if mas