1 May
2002
1 May
'02
10:21 a.m.
Dear Haskellers, I want to read some data from a text file. I accomplished it but I want to read data from file as a Integer list for example text file has [1,2,3,5] and when I read this data from file I handeled it as string. What can I do to get it as integer list. Thanks.......... Bahadır SEVİNÇ
1 May
1 May
11:04 a.m.
Hello,
text file has [1,2,3,5] and when I read this data from file I handeled it as string. What can I do to get it as integer list.
Apply read: [Warning untested code ahead] main :: IO () main = do contents <- readFile "myFileWithNumbers" let intList = read contents :: [Int] print intList Arjan
8885
Age (days ago)
8885
Last active (days ago)
1 comments
2 participants
participants (2)
-
Arjan van IJzendoorn -
Bahadır SEVİNÇ