Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [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));


Notes