Let $X$ be a topological space. It is known that if $A\subset X$ is finite then $A$ is compact. I want to know what condition must be added such that the converse holds, that is if $A$ is compact then $A$ is finite. I think that this condition holds whenever $X$ is discrete space.
What are other conditions such that every compact set is finite?
Is it true that if every compact space $X$ is finite then $X$ must be discrete space?