2 module Main(main) where
10 h <- openFile "tst-seek" WriteMode
11 hPutStr h "test string1"
12 -- seek to EOF should be cool..
14 hPutStr h "test string2"
15 -- seek past EOF should now also be cool..
17 hPutStr h "test string3"
18 hSeek h AbsoluteSeek 13
19 hPutStr h "test string4"
24 ls <- readFile "tst-seek"