Hi,
I have a user defined type object. something like:
I would like to give the user the ability to save in a text format (csv or anything else). In the past I have created manually a csv string and then used the WriteString method of File object but in this case my real Obj1 is pretty complex (many fields) so I was hoping for something simple.
Of course I also would like to be able to read the generated file to fill the Obj1.
Thanks!
I have a user defined type object. something like:
B4X:
Type Test1(Field1 as string, Field2 as string,Field3 as string)
dim Obj1 as Test1
Obj1.initialize
Obj1.Field1 = "text1"
Obj1.Field2 = "text2"
Obj1.Field3 = "text3"
I would like to give the user the ability to save in a text format (csv or anything else). In the past I have created manually a csv string and then used the WriteString method of File object but in this case my real Obj1 is pretty complex (many fields) so I was hoping for something simple.
Of course I also would like to be able to read the generated file to fill the Obj1.
Thanks!