Sub Button1_Click
'''xui.MsgboxAsync("Hello world!", "B4X")
Dim bc As ByteConverter
File.Copy(File.DirAssets, "Points1.bin", File.DirInternal, "Points1.bin")
Dim raf As RandomAccessFile
raf.Initialize(File.DirInternal, "Points1.bin", True)
Dim b(8) As Byte
raf.ReadBytes(b, 0, b.Length, raf.CurrentPosition)
Dim NumPoints As Int = bc.LongsFromBytes(b)(0)
Log(NumPoints)
Dim PointNumber As Int = 0
Do While True
Dim b(12) As Byte
Dim Result As Int = raf.ReadBytes(b, 0, b.Length, raf.CurrentPosition)
If Result < 12 Then Exit
PointNumber = PointNumber + 1
If PointNumber < 6 Or PointNumber > NumPoints - 6 Then
Dim fff() As Float = bc.FloatsFromBytes(b)
Dim xf As String = NumberFormat2(fff(0), 1, 5, 5, False)
Dim yf As String = NumberFormat2(fff(1), 1, 5, 5, False)
Dim zf As String = NumberFormat2(fff(2), 1, 5, 5, False)
Log(PointNumber & TAB & xf & TAB & yf & TAB & zf)
End If
Loop
End Sub