hi all iam new to c language so need a lil bit of help. there is a file called config.txt it contains x and y cordinates in the following format: i need to copy the values of all the cocordinates and store them into 4 integers variables into my program. the problem is when i copy the value into the integer variable, ascii value of that char gets stored. iam using the func fgetc. as iam new to c iam unable to do the convertion. i also tried typecasting. can anyone help me with the code. i think the code will not be long. so i wish if u can write it and explain what logic u used. the integer values will then be passes to plenv func pf plplot lib.