[plt-scheme] port -> file/line/column ?

From: Benderjg2 at aol.com (Benderjg2 at aol.com)
Date: Mon Oct 7 07:47:49 EDT 2002

Hi Kirill!

After calling (port-count-lines! <port>)--following the opening of the port--
then port-next-location will return a list of line number, column number, 
and file pos.

Jim

> Is it possible to extract from a port some information about 
> current position and (in case of file-stream port) about corresponding
> file name?
> 
> In other words, I'm looking for some friends to 'file-position' which can 
> return 
> line, column and filename.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20021007/f3e104e9/attachment.html>

Posted on the users mailing list.