Modify

Opened 17 years ago

Closed 17 years ago

#656 closed Bug (Fixed)

_FileCountLines and AutoIt v3.2.13.9 (Beta) - wrong return on one line

Reported by: maraaa Owned by: Gary
Milestone: 3.2.13.10 Component: Standard UDFs
Version: 3.2.13.9 Severity: Blocking
Keywords: bad return, _FileCountLines Cc:

Description

When only one line is present in file, _FileCountLines will return 0 instead of 1


Most Venerable Penguin
Group Icon

Group: AutoIt MVPs (MVP)
Posts: 7,190
Joined: 12-December 05
From: Victoria Crater, Mars
Member No.: 9,334

Issue is not present with 3.2.12.1 but is present with 3.2.13.9. Example script:
#include <File.au3>
$sFile = _TempFile()
$hFile = FileOpen($sFile, 2)
FileWrite($hFile, "One line of text.")
FileClose($hFile)
ConsoleWrite("Count = " & _FileCountLines($sFile) & @LF)
FileDelete($sFile)

Attachments (0)

Change History (1)

comment:1 by Gary, 17 years ago

Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.13.10

Modify Ticket

Action
as closed The owner will remain Gary.

Add Comment


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