--- Andreas wrote: > I need to write the file name in the command line > when i start my program. > myprog < data.txt If you are using Ada.Command_Line to pick up the name "data.txt", then you don't need the "<" to redirect it as standard input, or you could just pick up argument number 2. But it's better to drop the redirect, in that case. Otherwise, leave it the way you have it and just use Get, Get_Line, etc. (without the "file" argument) from Ada.Text_Io and it will be working with "data.txt" as standard input. Frank __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash