On Fri, Dec 9, 2016 at 10:33 PM, Arie van Wingerden <[hidden email]> wrote:
> When trying things out I find a huge module reference but a limited tutorial
> and manual.
> E.g. I try to open a textfile for read.
> I find:
> - Stdio.File (non-buffered)
> - Stdio.FILE (buffered)
> However I cannot find a simple example of how to use it ...
> I tried several ways to use the open() method, but then it says that neither
> Stdio.File nor Stdio.FILE have an open method, which is not conform the
> module reference.
> Maybe I missed the obvious :-)
> So, are there more examples available???
Normally what you'll do in Pike is to start by constructing an object.
In the case of Stdio.File and Stdio.FILE, it works like this: