Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
First question: I have a SwiftUI app that runs calculations based on number values and number arrays, both one and two-dimensional, stored in text files. However these text files are stored on my computer, and I wish to have them within the app itself so the app can run the calculations on my phone and other devices apart from my computer.
Second question: I'm not sure how to read data from text files. I temporarily made JSON files but this isn't a long-term solution. I wish to be able to have the app read something like
Apples:
0
Energy:
"10"
Mode:
"Photo"
Depth:
2.0
and be able to store it in an object with the corresponding properties and values so that they may be used in the calculations.