in reply to How to read contents of a file without opening it and print the contents
I hand you a flash drive. Tell me what information is stored on it without inserting it into any usb host. Also physically opening the drive is not allowed.
This is not meant to be mean nor to insult. I am simply trying to give a more physical analogy to help you see what you are asking and how it sounds.
You have to "open" a file to read the contents.
open FILE, "filename" or die "could not open filename"; while(<FILE>) { print $_; } close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to read contents of a file without opening it and print the contents
by Anonymous Monk on Jun 10, 2011 at 13:42 UTC | |
by zek152 (Pilgrim) on Jun 10, 2011 at 13:50 UTC | |
by Anonymous Monk on Jun 10, 2011 at 14:05 UTC |