Purchasing a foreclosure is fairly simple but, you should understand the difference between buying a foreclosure versus a traditional sale.
When you buy a foreclosure, you are buying the property in "as-is" condition. Meaning that the bank that currently owns the property has no knowledge of the condition of the property they are selling. Sometimes they will address problems, sometimes they won't.
Banks won't pay for a survey (the little map that shows the property lines) so that is a cost that you will incur should you buy a single family or townhome/duplex.
You must have your financing in place ahead of time or, if paying cash, you have to show that YOU, the buyer, have that cash reserved in your account.
There are other things to consider as well which I'm happy to discuss. Let me know how I can assist you.