I have two stibgs. One string holds the name of a jpeg file. The other string
holds the new name I want for the jpeg file. How would I proceed to do this. I
would think it would be easy but I just can not figure it out. Thanks in
advance for any assistance that can be given.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can invoke an OS shell command to do it via a system() call, or you can
open the file for "binary read", and create the new file as "
;binary-write", and read blocks from one and write them to the other.
The latter method is portable, the first method depends on the OS shell and
commands available, so is not portable between different OS's
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have two stibgs. One string holds the name of a jpeg file. The other string
holds the new name I want for the jpeg file. How would I proceed to do this. I
would think it would be easy but I just can not figure it out. Thanks in
advance for any assistance that can be given.
I ment to say I have two strings, not two stibgs.
You can invoke an OS shell command to do it via a system() call, or you can
open the file for "binary read", and create the new file as "
;binary-write", and read blocks from one and write them to the other.
The latter method is portable, the first method depends on the OS shell and
commands available, so is not portable between different OS's
Thanks for the help. It took a bit of doing but I have the program copying the
jpegs perfectly.
http://msdn.microsoft.com/en-
us/library/aa363851%28VS.85%29.aspx
Thanks cpns for this useful source.
I am here too for sharing knowledge and solve my problem
David; please stop digging up dead threads merely in order to add no content.