sub Write_StringN(ByVal fileHandle As HANDLE, ByVal value As string)
Записывает в файл строковое значение с признаком окончания строки
fileHandle - хендл файла
value - значение типа String
Windows , Linux
#Include "window9.bi"
Var handle=Create_File("Пример.txt")
If handle <> Cast(Any Ptr, -1) Then
Write_StringN(handle,"STRING_1")
Write_StringN(handle,"STRING_2")
Close_File(handle)
EndIf
handle=Read_File("Пример.txt")
If handle <> Cast(Any Ptr, -1) Then
? Read_String(handle)
? Read_String(handle)
Close_File(handle)
EndIf
Sleep
STRING_1
STRING_2
Created with the Personal Edition of HelpNDoc: Create iPhone web-based documentation