I made this algorithm in Pascal which feeds numeric information into a text file.
program Pascal;
var
i:integer;
Vect:array[1..1001] of integer;
Myfile: text;
begin
i:=1;
for i:=1 to 999 do
vect[i]:=i+1;
Assign(Myfile, 'Myfile.txt');
Rewrite(MyFile);
for i:=1 to 999 do
begin
WriteLn(vect[i]);
WriteLn(Myfile, vect[i]);
End;
Close(Myfile);
ReadLn;
End.
I needed an idea for another program that, as soon as this text file was fed, the program would automatically add the current date to each line that was inserted.
I'm not asking for the code or the program already worked out. Just an idea how to use Assign , For example, or maybe using a .bat file. I do not know.
I am learning programming logic but I am not aware of some tools of each language, such as an interaction between files or programs.