kolyur
Lifetime Supporting Member + Moderator
The 10 specifies that the number should be converted as base 10.
As an aside, I'm not sure how Ken's code could be used for recipe storage except in very simple applications. The idea behind a recipe is that you have 'x' number of recipes, each with 'y' individual parameters. This necessitates a 2D matrix of size 'x' by 'y', with x*y total elements. If you simply store one data element per line, I don't see how you can maintain the recipe structure. Unless, perhaps, you store three elements per line: the recipe number, the parameter number/name, and the data value for that parameter. Then your program code would read each line and store the data value in the proper array location based on the other two elements. Parsing delimiters would still be required so I don't see much advantage.
As an aside, I'm not sure how Ken's code could be used for recipe storage except in very simple applications. The idea behind a recipe is that you have 'x' number of recipes, each with 'y' individual parameters. This necessitates a 2D matrix of size 'x' by 'y', with x*y total elements. If you simply store one data element per line, I don't see how you can maintain the recipe structure. Unless, perhaps, you store three elements per line: the recipe number, the parameter number/name, and the data value for that parameter. Then your program code would read each line and store the data value in the proper array location based on the other two elements. Parsing delimiters would still be required so I don't see much advantage.