Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » using sockets » scanLines
next | previous | forward | backward | up | index | toc

scanLines -- apply a function to each line of a file

Description

The file is read and processed one block at a time, making this procedure potentially much better at conserving memory than scan(lines get fn,f) when the file is very large.

Ways to use scanLines:

  • scanLines(Function,List)
  • scanLines(Function,String)

For the programmer

The object scanLines is a method function.


The source of this document is in Macaulay2Doc/ov_system.m2:359:0.