hey guys,
this is urgent! i have an assignment where have to read contenets of a file character by character and whenever get an unexpected character the program is supposed to tell the user at what line the program stopped and exit the program. i just need to know how do i show the user the number of the line. i really don't know what to write in order t make this work and i am new in th world of programing. i am facing a lot of problems .can someone give me an example on this so that can apply it to the assignment. thank you all :)