diff -r 000000000000 -r bde4ae8d615e os/ossrv/stdcpp/tsrc/Stdcpp_test/tstdcpp/platsec/src/platsectest10.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/os/ossrv/stdcpp/tsrc/Stdcpp_test/tstdcpp/platsec/src/platsectest10.cpp	Fri Jun 15 03:10:57 2012 +0200
@@ -0,0 +1,53 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+#include<iostream>
+#include <fstream>
+#include <stdio.h>
+#include <errno.h>
+
+#include"std_log_result.h"
+#define LOG_FILENAME_LINE __FILE__, __LINE__
+using namespace std;
+
+int main()
+{
+	errno = 0;
+	fstream outfile;
+	outfile.open("c:\\resource\\test.txt",fstream::out|fstream::in|fstream::trunc);
+
+	if (outfile.is_open())
+  {
+  	outfile<<"test line\n";
+    cout << "File successfully open";
+    outfile.close();
+    assert_failed = true;
+  
+  }
+  else
+  {
+    cout << "Error opening file";
+
+	cout <<"\nErro = "<<errno;
+    
+  }
+  testResultXml("platsectest10");
+  close_log_file();
+  outfile.close();
+  return 0;
+
+}