How to Write File in Reverse Order -
i'm working on ansi c application produces file contents in reverse order. is, bytes @ end of file received first, , @ beginning received last. preferably, due amounts of data may involved, write data directly file without first arranging in separate memory buffer. possible? how may accomplished using ansi c? if can done higher level library not ansi compliant, acceptable.
the solution simpler had thought. able use fseek
move file pointer end of file , incrementally move backward (decrement file pointer index) through file each write.
Comments
Post a Comment