After my previous question of SavingToFile with TStringList, I now need to load the file I created called Password.txt using LoadFromFile but I don´t know what the form of LoadFromFile is. The Password.txt is in the same folder as the program that needs to load it but I keep getting Access Violation at different addresses when I try LoadToFile in the way I thought it would work. How to I load Password.txt to a string in Delphi without getting a violation ?
Please help
You are probably forgetting to create the string list properly with code like this:
or
But without seeing your code all we can do is guess as to what your problem is. That said, the first sample of code above is correct.