I'm trying to grab file.txt, so I put
$filename = file("file.txt");
So at that now I grab certain lines from that file like so:
$sub1 = ("$filename[35]");
That grabs line 35 in file.txt
Now to print it:
<? print "$sub1"; ?>
Suppose line 35 has over 500 characters in it, can I set it to grab a certain amount? (Lets say 300).
-Thanks