I have 2 buttons, add and remove to append to and delete line (value in textbox) from file in aspx page respectively.
The thing is that I got in the point that the contents of the file must be loaded if it's not postback (first load) to a dropdown.
Is there a sample feasible algorithm for this? or a pseudocode? or the code? (I have to check file's existency or whether it's empty or not to be free of exceptions)