I have a text file of the form:
Pomace oil # 2.11 # 0.21 # 7
Sunflower oil # 5.14 # 0.1 # 3
I need to read and store its contents in different variables, that is, until the first one in one, until the second one in another, etc.
I am using the following line of code to read the file:
Path path = FileSystems.getDefault().getPath(SEPARADOR, "productos.csv");
Where separator is #, but do not continue. Can anybody help me? Thanks.