Opened on Aug 19, 2013 at 10:56:31 PM
Closed on Aug 20, 2013 at 10:33:13 AM
Last modified on Aug 25, 2013 at 8:41:29 AM
#2387 closed Bug (Fixed)
FileOpen - parameters description - Filename of the text file to open.
| Reported by: | mlipok | Owned by: | FireFox |
|---|---|---|---|
| Milestone: | 3.3.9.18 | Component: | Documentation |
| Version: | 3.3.9.17 | Severity: | None |
| Keywords: | Cc: |
Description
This function can open many file types, not only TXT.
EXAMPLE:
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
Local Const $sFilePath = @ScriptDir & "\FileOpen.pdf"
If FileExists($sFilePath) Then
Local $hFileOpen = FileOpen($sFilePath, $FO_BINARY + $FO_UNICODE)
Local $sFileRead = FileRead($hFileOpen)
FileClose($hFileOpen)
MsgBox($MB_SYSTEMMODAL, "", "Contents of the file:" & @CRLF & $sFileRead)
Else
MsgBox($MB_SYSTEMMODAL, "File not exist", $sFilePath)
EndIf
EndFunc ;==>Example
Attachments (0)
Change History (4)
comment:2 by , on Aug 20, 2013 at 10:33:13 AM
| Milestone: | → 3.3.9.18 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [8656] in version: 3.3.9.18

Pleas change
parameters description
From that
Filename of the text file to open.
to something like that
Filename to open (full path).