I want to read some data from a file "Signature.ken" , for that I
have written a program but its showing some errors
(the file "signature.ken" contains data of the type = (122,152) )
main = do
j <- readFile "sig1.key"
let (x,y) = (read j)
putStrLn ("value=" ++ (show (x,y)))
ERROR file:.
how to convert a hexadecimal into base 10 integer using haskell . I have
written a code but its not working for large values , please help
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
I have written a code to convert hexadecimal numbers into base 10 number
but its working only for 32 bits and I need it to work upto 160 bits , code
is given below. please help.
--its a program to convert hexadecimal numbers into base 10 numbers
import Char
-- the function "func" takes a list
Thanks a lot Mr. jules now the code is working perfectly for higher values
, the problem was with ord .
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe