![]() Right off the bat, it must be pointed out that Data File Converter comes with an atypical and somewhat strange interface. The app's interface is by no means its strong point In a few words, this small application aims to help you convert individual files to CSV, TXT, TSV, XLS, XML, SQL and HTML formats. There are also some libraries specifically for this.Data File Converter is a simple piece of software that provides you with all the necessary tools and means to convert a small set of file types to other formats. Not tested but this might point you in a more cleaner and efficient solution. So if the number of write operations is more, the actual IO operations are less and performance is better. BufferedWriter: BufferedWriter is almost similar to FileWriter but it uses internal buffer to write data into File. One thing to note here is using bufferedWriter:įileWriter writes directly into Files and should be used only when the number of writes is less. How can I improve my solution to work with big list inside loop if I want to append a lot of rows to csv file.Ĭheck this post - it contains a few nice references to some libraries or pure Kotlin approaches if you prefer to use those.Īpplying it to your use case, maybe something like: fun OutputStream.writeCsv(context: Context, listOfData: List) For example, now I have problem with my phone (with file system) maybe my file system has some problem because I use this idea to cope csv file from phone to PC. If my list listName is a big I have problem with my phone if I use this idea to copy all data to csv file on my phone. ![]() val path = context.getExternalFilesDir(null) Val file3 = File(letDirectory, "out777.csv")īut my solution does not work (work bad) when I use it inside big loop (inside big list). I have a problem when I use this solution for big data. I have found solution but it's work only for small data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |