B4J Question File.ReadList - Is Order Guaranteed? - tchart    
Apr 3, 2024As per title, is the order of File.ReadList guaranteed to be the same as the files lines?
Ive got a scenario where I need to check the first few lines of a file to ensure its the correct type of file....
link: ",l)
Dim l2 As List = File.ReadList(File.DirApp,"out.txt")
Log(l2.Get(0...
link: Yes. The order is exactly the same....
Italian File.ReadList - toro1950 (first post)    
Aug 22, 2024   
(1 reaction)Grazie Sagenut, ho provato senza il nr di record come mi hai consigliato e va benissimo, grazie di n...
link: devi rifare i Files almeno per ora....
link: Oltre a questo mi viene da pensare che potresti evitare di scrivere il numero dei record come primo ...
link: Senza qualcosa da provare è difficile capire cosa possa essere.
Giusto per fare qualcosa prova così...
B4A Question [SOLVED] File.readlist, first item is empty - alwaysbusy    
Feb 27, 2015Hi,
I'm trying to read a file using the file.readlist() method. For some reason the first item in the list is empty, although there is no CR of LF at the beginning.
Attached is the file in...
link: of the two type of EOLs I used. If I use all CR chars OR all CRLFs, readlist works as expected...
link: ReadList expects another?
Otherwise, simplify. Make a simple file (in a texteditor) with, say, A, B, C...
link: <-CRLF
Code:
Dim txtIN As List
txtIN.Initialize
txtIN = File.ReadList(mGlobal.BuildPath...
B4A Question Help Please. Can ListView,File.WriteList ,File.ReadList work together? - giga    
Jan 10, 2014.LoadLayout("layout1")
ListView1.Initialize("ListView1")
If File.Exists(File.DirRootExternal,"test.txt") Then
List1 = File.ReadList(File.DirRootExternal, "test...
link: Thanks DonManfred that did the trick. I appreciate your help....
link: start counting from 0!
For i=0 To List1.Size-1
If the size is 3 then the entries are: 0, 1, 2
May...
link: I am updating the List1 now but running into an error: java.lang.IndexOutOfBoundsException: Invalid ...
B4A Question Arrays, Lists, and File.ReadList - Roger Garstang    
Jan 29, 2013 be with File.ReadList and possibly variable scope or something. Currently I fill the list in...- My file read with File.ReadList is US States and it reports 50. When the label is tapped it shows the list: My Array as String() shows its list, my Null List shows no list, and my File.ReadList...
link: the File.ReadList parameters. I got to reading the documentation for the other variation of toArray and...
link: File.ReadList doesn't do anything special.
Can you post the code that fails?...
B4A Question Weird behavior in File.ReadList - DonManfred (first post)    
Oct 19, 2020
Is this normal behavior for the List type?
Yes
https://www.b4x.com/android/forum/pages/results/?query=file.readlist...
link:
I think from the documentation that ReadList and WriteList are intended for use with text files...
link: I think from the documentation that ReadList and WriteList are intended for use with text files...
link: ) Then
SavedDrugs = File.ReadList(File.DirInternal,"saveddrugs.lst")
For...
B4A Question WriteList / ReadList with ExternalFile - GiovanniPolese    
Aug 15, 2023.
The Notepad++ image shows what I see. The file is attached. Now, ReadList reads 3 lines. Must I reconstruct...Hi to All
I have a List of ExternalFile objects. The list is obtained on an external sd card...
link: of the device to hold all the files?
Yes, the speed of SD card access varies greatly according to...
link: of the device to hold all the files?
Yes, the speed of SD card access varies greatly according to...
link: choice for having a dynamic management of thousands of files. I did this, and actually the problem is not...
B4J Question File.ReadList and ISO - kohle (first post)    
May 29, 2019ok. Thanks...
link: As TextReader
tr.Initialize2(File.OpenInput(...), "ISO-something")
Dim list As List = tr.ReadList...
link: I am reading a windows iso file with File.ReadList.
I think the command expects an uft8 file.
How...
B4J Question File.ReadList's line terminator? - Bruce Axtens (first post)    
Apr 25, 2018Pity. Would like to have had the behaviour adjustable.
Anyway, thanks....
link: (File.ReadList("C:\temp","test.txt"))
Gives:
(ArrayList)
...
link: CR or LF or CR+LF are all treated as line terminators....
link: It uses CRLF
https://www.b4x.com/android/help/images/Field.png CRLF As String
New line character. ...
German File.ReadList , wo ist der Fehler? - mw71 (first post)    
Feb 10, 2017....Ausser vielleicht ´ne Datenbank zu benutzen.
SQLite, man muss sich zwar erst mal einarbeiten, a...
link: Mit readobject auslesen, wert ändern, mit writeobject wieder schreiben.
Was anderes bleibt dir nicht...
link: muss nochmal nachfrage,
wie ersetze / update ich "einen" Eintrag/Wert in meiner Liste mit ...
link: @DonManfred
Also dein Ratschlag, Writeb4xObject zu nutzen den hab ich so in etwa nun genommen, und d...
Page: 1  
2  
3  
4  
5  
6  
7