LAMW - read and write text files lazarus / 43-Android ---------------------------------------------------------------------- gitchef · 2022-10-19 10:30 Hello everybody, I am developing an App that receives data from a Windows PC using sockets. The data transfer works fine, the received data is tranfered to a stringlist, the App creates a new text file and stores the received data (approx. 20 lines of text) to that file. So far, so good. The App works fine with Android 9 but due to the changes in Android 10, the file handling needs to be changed. My problem is as follows: How do I save the complete StringList to a text file and how do I read the complete file into a StringList. The example AppPublicFolderAccessDemo1 does not help as it only deals with text files consisting of just one line / one single string. Maybe I am just to blind to see...  Thanks a lot for your help. Stefan ---------------------------------------------------------------------- Mongkey · 2022-10-21 00:18 you could change your option, build small win server/socket -> json format data -> jhttpclient consume. ---------------------------------------------------------------------- gitchef · 2022-10-21 07:30 Thank you for your answer. I have been considering this option as well but I did't want to make major changes on the Windows side, if I don't have to. Maybe I should have a closer look on this solution. ---------------------------------------------------------------------- Mongkey · 2022-10-21 07:42 Fpc got many samples, go on fcl-web, deep dive, you'll find hidden gems there