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.
have patience. In 2 minutes of time span you posted 3 times and instead you could have helped someone else.
hehe sorry for that shabbir what can i do iam a born spammer. hve 2 lac posts in another forum but thats 3x rated:blush: