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

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -