Clinton Jeffery <jeffery@...> writes:
> OK, so this divergence of the implementation from the spec is now implemented
for normal files in svn and will be supported in future binaries builds. In the
meantime, is anyone clever enough to write a library module version of open()
that implements Jafar's solution at the Unicon level?reads(... -1) was
originally introduced in the messaging facilities (mode "m" only feature) and
when the book was being written it was decided to implement for regular files as
well. But no one ever volunteered before now. There are no current plans to
support reads(... -1) for sockets, windows, etc.Kim, thanks for the
prod!Cheers,Clint
Thanks Jafar for the workaround.
I wrote in the end:
kf := open(fn, "ru") | stop(ErrorMsg[2])
line := reads(kf, stat(kf).size)
which works as required.
Clint, do you mean a library module version of reads()? I don’t see a problem
with open(). (Not that I am clever enough to do either!)
Cheers
Kim
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group