open FILE, "c:\sample.java"; while(<FILE>) { s/\r/\n/g; print "$_\n"; } close FILE;
And it printed the file correctly.
thanks for your help. I was so puzzled. How did you figure it out?
regards,In reply to Re: Re: Strange File read problem
by abhishes
in thread Strange File read problem
by abhishes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |