coreapplicationuis/rfsplugins/tsrc/rfspluginstest/secureformattertest/testdatacreator/src/filecreator.cpp
equal
deleted
inserted
replaced
64 INFO_2( "File to create: %S (%d bytes)", &aName, aSizeInBytes ); |
64 INFO_2( "File to create: %S (%d bytes)", &aName, aSizeInBytes ); |
65 |
65 |
66 RFile file; |
66 RFile file; |
67 TInt err = file.Replace( iFs, aName, EFileWrite ); |
67 TInt err = file.Replace( iFs, aName, EFileWrite ); |
68 ERROR_1( err, "Failed to create file %S", &aName ); |
68 ERROR_1( err, "Failed to create file %S", &aName ); |
69 User::LeaveIfError( err ); |
69 //User::LeaveIfError( err ); |
70 CleanupClosePushL( file ); |
70 CleanupClosePushL( file ); |
71 |
71 |
72 TInt blockSize = iWriteBuf->Size(); |
72 TInt blockSize = iWriteBuf->Size(); |
73 TInt lastBlock = aSizeInBytes / blockSize; |
73 TInt lastBlock = aSizeInBytes / blockSize; |
74 for ( TInt i = 0; i <= lastBlock; i++ ) |
74 for ( TInt i = 0; i <= lastBlock; i++ ) |