Read_Single

File ››
Parent Previous Next

Read_Single

Синтаксис

Function Read_Single(ByVal fileHandle As HANDLE) As Single

Описание

Читает 4 байтовое дробное число из файла

Параметры

fileHandle - хендл файла

Платформы

Windows , Linux

Пример

#Include "window9.bi"
Var handle=Create_File("Пример.txt")
If handle <> Cast(Any Ptr, -1) Then
  Write_Single(handle,565.546)
  Close_file(handle)
EndIf
handle=Read_file("Пример.txt")
If handle <> Cast(Any Ptr, -1) Then
  ? Read_Single(handle)
  Close_file(handle)
EndIf
Sleep

Результат

565.546

Created with the Personal Edition of HelpNDoc: Free help authoring tool