EmbLogic's Blog

this is the program to read the last n character from the file using fgetc,ftell.

head 1.1;
access;
symbols;
locks; strict;
comment @ * @;

1.1
date 2014.03.20.02.57.15; author root; state Exp;
branches;
next ;

desc
@this is the program in which i have first opened the file.
after opening the file , i have moved the file pointer to the last location using fseek function passing SEEK_END constant.
i have used ftell to know the position of file pointer .after that i have read last character from file.
@

1.1
log
@Initial revision

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>