I need to use the rename function in C to move a file from a Windows box to a Linux box.
I've got the basic syntax -
I can get it working on Windows to Windows, but Windows to Linux doesn't seem to work. Is there a different syntax/folder structure setup I should be using?
Linux is a bit new to me and I'm a bit of programming noob so any assistance is greatly appreciated!
I've got the basic syntax -
Code:
rename(C:\Temp\filename1.txt, srv452\home\sag\temp\filename1.txt)
I can get it working on Windows to Windows, but Windows to Linux doesn't seem to work. Is there a different syntax/folder structure setup I should be using?
Linux is a bit new to me and I'm a bit of programming noob so any assistance is greatly appreciated!