in reply to reading file

i tried by "open file ">file name" while(file){}" but it take too much time

That's understandable, while (file) { ... } is an infinite loop that doesn't read anything. I suggest using  while (<file>) { ... } instead.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.