Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to move a file

You can move a single file to a different directory without renaming it, using RFs::Rename().

// Move file.txt from dir1 to dir2
_LIT(KFileSource,"\\dir1\\file.txt");
_LIT(KFileTarget,"\\dir2\\file.txt");
User::LeaveIfError(fsSession.Rename(KFileTarget,KFileSource));

[Top]


Notes