Scenario - I have a file with x number of alphabets (a, b, c, d, e, f).
I want to take this alphabets and write it into a list or a dictionary. The file can end at any alphabet but the loop must stop if it has picked up the last alphabet and there is no other alphabets.
Each alphabet must be captured individually and appended to the list/dictionary and not using variables like what is the length of file as we don't know this and it will always change.
Run loop until file is empty and add the contents into a list/dictionary. The dictionary can be as {1:a,2:b,3:c,4....}.
Maybe a case of using Exit For Loop If?
whileloop in the framework. What you could do is read the file using theOperatingSystemlibrary and then split it by commas or by lines and do aFORloop to iterate the file's content.FORloop.