Loading and Using CSV and XML Files.

drlebey

New Member
Licensed User
Longtime User
Can someone please make a short csv app and an xml app showing how to use those files in the following way?
  • Loading the files
  • Assigning values from cells of file to labels or textboxes.
  • Saving data from textboxes into the file.
  • Parsing it for specific data from a textbox.
Thank you very much.:)
:sign0104:
 

mjcoon

Well-Known Member
Licensed User
That's a bit needy!

It's difficult to demonstrate CSV and XML reading without sample files (and knowing where they originate and thus what they contain). In particular, both files are liable to contain multiple data records, so they require to be processed in a loop.

For the case of XML, there are demo programs and a sample XML file with Andrew Graham's XML.dll library. See http://www.b4x.com/forum/additional-libraries/3385-xml-library.html#post19094.

Mike.
 

drlebey

New Member
Licensed User
Longtime User
Sorry about the neediness.

Thank you for the reply. I have looked at the XML posts before I post. I am off using XML for now. I did find a post about CSV files being opened and got it working. Maybe someone can just post a small code snippet on how to save a CSV file that would be great. :sign0013:


Added-
I forgot about the samples given with basic. I found a good example in the samples.
 
Last edited:
Top