sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include"std_log_result.h" sl@0: #define LOG_FILENAME_LINE __FILE__, __LINE__ sl@0: sl@0: using namespace std; sl@0: sl@0: int main() sl@0: { sl@0: errno = 0; sl@0: fstream outfile; sl@0: outfile.open("c:\\test.txt",fstream::out|fstream::in|fstream::trunc); sl@0: sl@0: if (outfile.is_open()) sl@0: { sl@0: outfile<<"test line\n"; sl@0: cout << "File successfully open"; sl@0: outfile.close(); sl@0: sl@0: } sl@0: else sl@0: { sl@0: cout << "Error opening file"; sl@0: cout <<"\nErro = "<