Informatix Expert Licensed User Longtime User Dec 7, 2012 #1 File.ReadList reads each line of the file and presumes that one line = one value. But in some cases, the values are written by File.WriteList on more than one line. To reproduce this bug, you can use this declaration: Code: Copy Type typItem(LayoutName As String, ID As Int, Top As Int) Private ulvItems As List
File.ReadList reads each line of the file and presumes that one line = one value. But in some cases, the values are written by File.WriteList on more than one line. To reproduce this bug, you can use this declaration: Code: Copy Type typItem(LayoutName As String, ID As Int, Top As Int) Private ulvItems As List
Erel B4X founder Staff member Licensed User Longtime User Dec 9, 2012 #2 This is not a bug. File.ReadList works with simple text files. This is exactly what it is expected to do. If you want to write more complex objects then you should use RandomAccessFile.WriteObject / ReadObject.
This is not a bug. File.ReadList works with simple text files. This is exactly what it is expected to do. If you want to write more complex objects then you should use RandomAccessFile.WriteObject / ReadObject.