Any ADA users?
I have to write a program that reports back stats about a text file (no. of letters, most common word etc), but I'm having trouble working out how to actually open a txt file to begin with.
We've been given a template to work with, and the part that is meant to open files is:
Ada.Text_IO.Open(File, Ada.Text_IO.In_File, Ada.Command_Line.Argument(1));
where File : Ada.Text_IO.File_Type;
I have pretty much everything else done, but I get a length check failed error if I run Counter_Driver <a text file> in terminal.
__________________
CPU E8200 |
Motherboard Gigabyte GA-P35-DS3L |
Memory 2GB Corsair TwinX |
Graphics Card 2900 Pro flashed to XT |
Hard Drive 2x Seagate 250 |
Sound Card Creative Audigy 4 |
Power Supply 620W Enermax Liberty |
Case Jeantech Nitro Black |
CPU cooling TR Ultra Extreme |
GPU cooling HR-03 |
OS XP |
Monitor 19" BenQ LCD |
Last edited by thealmightyone : 05-05-08 at 09:45 AM.
|