Re: [Haskell-cafe] File position

2011-02-08 Thread Chris Smith
On Tue, 2011-02-08 at 18:15 +0300, Permjacov Evgeniy wrote:
> Is there any way to get current position from System.IO.Handle as
> Integer?

Have you looked at hTell in System.IO?

-- 
Chris Smith


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] File position

2011-02-08 Thread Permjacov Evgeniy
Is there any way to get current position from System.IO.Handle as
Integer? If no, what other  windows/unix portable IO function set
of file io with this functionality you can suggest? keeping track of
current position by hand is not an option, sorry.

I'm thinking about c's low-level functions such as open, read, write,
but there is no such functions in windows and I do not know if libc from
haskell platform provides emulation. If it does, I'll use lowlevel c
functions brainfree.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe