Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#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:1 by mlipok, 13 years ago

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

comment:2 by FireFox, 13 years ago

Milestone: 3.3.9.18
Owner: set to FireFox
Resolution: Fixed
Status: newclosed

Fixed by revision [8656] in version: 3.3.9.18

comment:3 by mlipok, 13 years ago

in 3.3.9.18 it is still not fixed

comment:4 by mlipok, 13 years ago

I only confirm
in 3.3.9.19 now is fixed
thanks

Modify Ticket

Action
as closed The owner will remain FireFox.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.