I've learned to write bytes from a file by reading the entire file into a character array and then writing them out to another file using fwrite. Of course, my teacher told me this is both wasteful and a file might not fit into memory, so I should use another method. What I want to do is write the exact copy of a file into my own file. How can I do this the better way? Thanks
RexxX 0 Light Poster
jephthah 1,888 Posting Maven
gerard4143 371 Nearly a Posting Maven
RexxX 0 Light Poster
jephthah 1,888 Posting Maven
RexxX 0 Light Poster
jephthah 1,888 Posting Maven
jephthah 1,888 Posting Maven
RexxX 0 Light Poster
gerard4143 371 Nearly a Posting Maven
jephthah commented: we don't do people's homework. -1
jephthah 1,888 Posting Maven
jephthah 1,888 Posting Maven
RexxX 0 Light Poster
jephthah 1,888 Posting Maven
RexxX 0 Light Poster
jephthah 1,888 Posting Maven
gerard4143 371 Nearly a Posting Maven
WaltP 2,905 Posting Sage w/ dash of thyme 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.