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