﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1515	FileOpen for Read fails on already opened file	M23	Jon	"From v3.3.5.3 Beta release notes:
''Fixed: Regression in FileOpen() where it wasn't allowed to open files in read mode if they were already open in write mode.''

In v3.3.6.0 you cannot open a file for reading if it is already open:

{{{
$h_write = FileOpen('test.txt', 1)

$h_read = FileOpen('test.txt', 0)
If $h_read = -1 Then
    FileClose($h_write)
    MsgBox(0, @AutoItVersion, 'Failed to open handle for read')
EndIf

FileClose($h_write)
FileDelete('test.txt')
}}}

The same happens when the file is opened in other apps (although I have now learnt that Notepad does NOT lock its open files).

Raised in [http://www.autoitscript.com/forum/index.php?showtopic=109436&pid=780472&st=0&#entry780472] - post # 6 and onwards.

M23"	Bug	closed	3.3.7.0	AutoIt	3.3.6.0	None	Fixed		
