Nice bit of flame-bait. If you're really serious and this is not simply a troll to get someone to do a homework assignment...... You might try looking at the packages: Ada.Streams (ARM 13.13.1), Ada.Streams.Stream_IO (ARM A.12.1), Ada.Text_IO.Text_Streams (ARM A.12.2) Somewhere in those packages lies the answer to all your problems. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Sergio" wrote in message news:J3Iv6.56705$CL6.1997020@telenews.teleline.es... > Ada simply cannot do that, sorry. > Ada sucks. > > "Sergio" escribi� en el mensaje > news:n5su6.24687$CL6.767652@telenews.teleline.es... > > How could I do this in Ada? Could I do it at a reasonable speed? I don't > > know how, please help me. Thanks > > > > void WorkFile(char *fileName) > > { > > char Buffer[4096]; > > FILE *handle; > > > > handle = fopen(fileName, "r"); > > while (!feof(handle)) > > { > > fread(handle, 4096, 1, buffer); /* Read data from file to buffer > */ > > Work(Buffer); /* ... do some work with such data */ > > } > > } > > > > > > > >