i have a program that 'll take an Ip address from the user and 'll search this IP address in a file.
now i open this file in binary mode.
the IP address will be in this form 169.254.28.233
shall i convert this address into hex before searching? as i'm searching in a file in binary mode?
also i need a function or a sub program that do this conversion, in order to write the output clearly