You just have to read each line into a string and then use it's split method with space character as delimiter.
Separate numbers from string [closed]
-
06-07-2023 - |
Question
/THIS IS A HOMEWORK QUESTION/
I have a .txt
file containing the information:
000001 commercial 200000.00 101
000002 commercial 200000.00 101
000003 residential 100000.00 102
I need to separate this data into a set, to organize by commercial/residential, and add double value based on the 101
,102
ID's.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow