aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/functionopen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/functionopen.cpp b/src/functionopen.cpp
index 4e8f636..b70a6c2 100644
--- a/src/functionopen.cpp
+++ b/src/functionopen.cpp
@@ -36,7 +36,7 @@ Variable FunctionOpen::call( Variable &input, VarList lParams )
36 Bu::String sMode = lParams.last().toString().toLower(); 36 Bu::String sMode = lParams.last().toString().toLower();
37 int iMode = Bu::File::Create; 37 int iMode = Bu::File::Create;
38 if( sMode.find('w') ) 38 if( sMode.find('w') )
39 iMode |= Bu::File::Write; 39 iMode |= Bu::File::Write|Bu::File::Truncate;
40 if( sMode.find('r') ) 40 if( sMode.find('r') )
41 iMode |= Bu::File::Read; 41 iMode |= Bu::File::Read;
42 Variable vRet( 42 Variable vRet(