Custom Query


Show under each result:

Results (82 - 84 of 3866)

Ticket Resolution Summary Owner Reporter
#149 No Bug FileRead does not return EOF but does return @Error =0, an undocumented state oblique
;FileRead(filehandle or "filename" [, count])
;EOF is not set when using 'filename' (default is to read entire file which I would expect to set EOF
;function returns @error = 0 which is an undocumented value
;Code below will demonstrate the problem, and can be used to test that the problem has been fixed.
;any text file can be used to demonstrate the problem
;prove FileOpen is good, and EOF is found
$file = FileOpen("anytext.txt", 0)
If $file = -1 Then
	MsgBox(0, "Error", "Unable to open file.")
While 1
	$chars = FileRead($file, 10000)
	If @error = -1 Then ExitLoop
	MsgBox(0, "Char read and EOF set:", $chars)

;show error
$fileR = FileRead("anytext.txt")
MsgBox(0,"Entire file is read", "Chars:"&@CRLF&$fileR)
	Case @error = -1
		MsgBox(0,"","pass; SPECIAL: @Error="&@error&" -1 = EOF is reached")
	Case @error = 1
		MsgBox(0,"","FAIL; SPECIAL: @Error="&@error&" 1 = file not opened in read mode or other error, NOT POSSIBLE IN THIS TEST")
	Case @error = 2
		MsgBox(0,"", "FAIL; SPECIAL: @Error="&@error&" 2 = count not defined for file open in raw read mode, NOT POSSIBLE IN THIS TEST")
	Case Else
		MsgBox(0,"","FAIL; SPECIAL: @Error="&@error&" UNEXPECTED - @Error is set to 0 not -1 when FileRead is executed (default is entire file)")

#150 No Bug Can´t open hidden file MrBestliving

I tried to open a hidden file with FileOpen funcion in "2" mode(Write mode (erase previous contents)), but it was failure. I was try it on version and but the result was in both version same.

#151 No Bug Constant redeclaration bug anonymous

Works from the GO command in scite but not when you run it from a double click

Note: See TracQuery for help on using queries.