I'm sorry not good at English.
I, I tried RandomAccessFile the code below, but it becomes the value of all 0 Looking at the log "Value2".
Please let me know if there is some solution
Thank you very much in advance.
Sub Process_Globals
Dim value1(1000) As Int
Dim value2(1000) As Int
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
'------------------READ-------------------------------------------
Dim raf As RandomAccessFile
raf.Initialize(File.DirInternal, "1.dat", False)
For i = 0 To 999
value1(i) = i
Next
For i = 0 To 999
raf.WriteInt(value1(i),i)
Next
raf.Close
'-----------------------------------------------------------------
'------------------WRITE-----------------------------------------------
Dim raf As RandomAccessFile
raf.Initialize(File.DirInternal, "1.dat", False)
For i = 0 To 999
value2(i) = raf.ReadInt(i)
Next
raf.Close
'------------------------------------------------------------------
For i = 0 To 999
Log(value2(i))
Next
End Sub
I, I tried RandomAccessFile the code below, but it becomes the value of all 0 Looking at the log "Value2".
Please let me know if there is some solution
Thank you very much in advance.
Sub Process_Globals
Dim value1(1000) As Int
Dim value2(1000) As Int
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
'------------------READ-------------------------------------------
Dim raf As RandomAccessFile
raf.Initialize(File.DirInternal, "1.dat", False)
For i = 0 To 999
value1(i) = i
Next
For i = 0 To 999
raf.WriteInt(value1(i),i)
Next
raf.Close
'-----------------------------------------------------------------
'------------------WRITE-----------------------------------------------
Dim raf As RandomAccessFile
raf.Initialize(File.DirInternal, "1.dat", False)
For i = 0 To 999
value2(i) = raf.ReadInt(i)
Next
raf.Close
'------------------------------------------------------------------
For i = 0 To 999
Log(value2(i))
Next
End Sub