File:Seek

  File:Seek( number pos )

Açıklama

Dosya işaretçisini belirtilen konuma ayarlar.

Argümanlar

1 number pos
İşaretçi konumu, bayt cinsinden.

Örnek

local f = file.Open( "test.txt", "w", "DATA" ) f:WriteFloat( math.pi ) f:WriteFloat( 66.99 ) f:Close() local f = file.Open( "test.txt", "r", "DATA" ) f:Seek( 4 ) print( f:ReadFloat() ) -- 66.98999786377 yazdırır f:Close()

Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord