<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>NetFile -- the class of all net files</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_net__List_lp__Visible__List_rp.html">next</a> | <a href="_net_lp__String_rp.html">previous</a> | <a href="_net__List_lp__Visible__List_rp.html">forward</a> | <a href="_net_lp__String_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>NetFile -- the class of all net files</h1> <div class="single"><h2>Description</h2> <div>This class is experimental. Net files are intended to supplant output files eventually. Whereas a file is a stream of bytes, or in some non-unix operating systems, a sequence of lines each of which is a sequence of bytes, a net file is a sequence of lines, each of which is a net. Each output line is assembled by joining nets one by one.<table class="examples"><tr><td><pre>i1 : f = newNetFile() o1 = <<a netfile>> o1 : NetFile</pre> </td></tr> <tr><td><pre>i2 : f << "aabbcc" << endl o2 = <<a netfile>> o2 : NetFile</pre> </td></tr> <tr><td><pre>i3 : f << "aa" << "bb"^1 << "cc"^-1 << endl o3 = <<a netfile>> o3 : NetFile</pre> </td></tr> <tr><td><pre>i4 : f << "aa" << "bb"^1 << "cc"^-1 << endl o4 = <<a netfile>> o4 : NetFile</pre> </td></tr> <tr><td><pre>i5 : getNetFile f bb bb o5 = (aabbcc, aa , aa ) cc cc o5 : Sequence</pre> </td></tr> <tr><td><pre>i6 : peek oo +------+ +------+ +------+ | bb | | bb | o6 = (|aabbcc|, |aa |, |aa |) +------+ | cc| | cc| +------+ +------+</pre> </td></tr> <tr><td><pre>i7 : class \ ooo o7 = (Net, Net, Net) o7 : Sequence</pre> </td></tr> </table> </div> </div> <div class="waystouse"><h2>Methods that use an object of class NetFile :</h2> <ul><li>Manipulator NetFile</li> <li>NetFile << Manipulator</li> <li>NetFile << Net</li> <li>NetFile << String</li> </ul> </div> <div class="waystouse"><h2>For the programmer</h2> <p>The object <a href="___Net__File.html" title="the class of all net files">NetFile</a> is <span>a <a href="___Type.html">type</a></span>, with ancestor class <a href="___Thing.html" title="the class of all things">Thing</a>.</p> </div> </div> </body> </html>