I am trying to reference the textfile from the assets folder which is a preloaded database. I need help fixing the text file so I can put it into assets folder to reference them within SQLite. I have followed a tutorial to reference the data in the assets folder. If I can get the columns correct I believe I will be able to finish. Language, Java.
https://www.ars.usda.gov/Services/docs.htm?docid=23634
This is the website I received the Data. I am using the Abbreviated version of ASCII. I got the titles from the Excel file rite below the ASCII download.
These are the column names I got from the excel file which I want to label the data from the snippet below.
"-" = separator for each title/label.
-NDB_No -Shrt_Desc -Food_Folate_(µg) -Folate_DFE_(µg) -Choline_Tot_(mg) -Vit_B12_(µg) -Vit_A_IU -Vit_A_RAE_(µg)_ -Retinol_(µg) -Alpha_Carot_(µg) -Beta_Carot_(µg) -Beta_Crypt_(µg) -Lycopene_(µg) -Lut+Zea_(µg) -Vit_E_(mg) -Vit_D_µg -Vit_D_IU -Vit_K_(µg) -FA_Sat_(g) -FA_Mono_(g) -FA_Poly_(g) -Cholestrl_(mg) -GmWt_1 -GmWt_Desc1 -GmWt_2 -GmWt_Desc2 -Refuse_Pct
This is a snippet of how each entry is formatted.
This is the first line of code in the text file. I dont know how to give each category its title in this format/ in general.
~16200~^~CAMPBELL'S BRN SUGAR&BACON FLAV BKD BNS~^69.40^123^3.85^1.92^1.75^23.08^6.2^10.00^31^1.11^^^^362^^^^^0.0^^^^^^^^^^^^0^^^^^^^^^^^^0.385^^^4^130^~.5 cup~^130^~1 serving~^0
If you need more information, I will get back as fast as I can. appreciate the help.