I have a struct in vb.net like:
structure test
dim element1 as string
dim element2 as integer
dim element3 as bool
end structure
dim varTest as test
I want to write and read the whole struct variable varTest
in a file.
I already try with fileput command like
fileput(freefile,binarymodeRead,varTest)
and it looks like it work
but when I try to read de struct with fileget
fileget(freefile,binarymodeWrite, varTest)
the app give me this error
Is there another way to read/write the whole struct into or from
a file.
structure test
dim element1 as string
dim element2 as integer
dim element3 as bool
end structure
dim varTest as test
I want to write and read the whole struct variable varTest
in a file.
I already try with fileput command like
fileput(freefile,binarymodeRead,varTest)
and it looks like it work
but when I try to read de struct with fileget
fileget(freefile,binarymodeWrite, varTest)
the app give me this error
Is there another way to read/write the whole struct into or from
a file.