calculates the size of the data structure specified by the format string.
'format' - a string describing the number of values to expect and their types.
the estimated size (in bytes) of the data
$handle = openf("/var/log/wtmp"); # read an entry from the wtmp log.. ($tty, $uid, $host, $ctime) = bread($handle, 'Z8 Z8 Z16 I'); $date = formatDate($ctime * 1000, "EEE, d MMM yyyy HH:mm:ss Z"); println("$[10]tty $[10]uid $[20]host $date");
ttyp2 raffi Mon, 13 Apr 2009 18:00:52 -0400