is it possible to copy specificity from a file for example i want to copy x number of bytes from x position to x position?
moroccanplaya 0 Junior Poster
Recommended Answers
Jump to PostWill an example help?
#include <stdio.h> #include <string.h> void dump_file(FILE *in, FILE *out) { int byte; while ((byte = getc(in)) != EOF) putc(byte, out); } int main(void) { /* Use binary if you want to seek arbitrarily */ FILE *in = fopen("test.txt", "rb"); if (in != NULL) …
All 3 Replies
gerard4143 371 Nearly a Posting Maven
moroccanplaya 0 Junior Poster
Narue 5,707 Bad Cop Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.