shan14
Member level 3
Hi
I have to write some data into text file. The data is some thing like this
Integer: 1107, float: 53.141590,A character: s
Integer: 1109, float: 53.141591,A character: c
Integer: 1110, float: 53.141593,A character: f
Integer: 1111, float: 53.141594,A character: B
Now After writing this into the text file; I have to read the last line from that text file and display it.
I having problem in reading the last line, because all int,float,char are present. I don't know How to read all that at once??
I just want the last line as the output.
i.e. Integer: 1111, float: 53.141594,A character: B
so can anyone help me with C code?
I have to write some data into text file. The data is some thing like this
Integer: 1107, float: 53.141590,A character: s
Integer: 1109, float: 53.141591,A character: c
Integer: 1110, float: 53.141593,A character: f
Integer: 1111, float: 53.141594,A character: B
Now After writing this into the text file; I have to read the last line from that text file and display it.
I having problem in reading the last line, because all int,float,char are present. I don't know How to read all that at once??
I just want the last line as the output.
i.e. Integer: 1111, float: 53.141594,A character: B
so can anyone help me with C code?