It is known from the fundamental work of Albanese and Monk that, the recovery of the support of a three dimensional current, within a conducting medium, from measurements of the generated exterior electric potential, is not possible. However, it is possible to recover the support of any other current, which is supported on a set of dimension lower than three. Nevertheless, no algorithm for such an inversion is known. Here, we propose such an algorithm for a two dimensional current distribution, and in particular, we apply this algorithm to the inverse problem of electroencephalography in the case where the neuronal current is restricted to a small disk of arbitrary location and orientation within the brain. The solution of this inverse problem is reduced to the solution of a nonlinear algebraic system, and numerical tests show that the there exists a unique real solution to this system.