Hi, if usage of Python is not a requirement i can create this simple tool as Windows/Linux console application. My solution will use combinations first, to determine all possible pairs of points. I.e. 4 lines in text file means 6 possible pairs:
1 and 2, 1 and 3, 1 and 4, 2 and 3, 2 and 4, 3 and 4
Then calculate distance for each pair of points. I only need to know what to do if there is more than a single pair with same calculated distance? Input file must be fully loaded first to determine combinations count (pairs of points) and this will be the slowest part of program. By "slowest" i mean depending on file size - probably just a few additional milliseconds for small files. Combination + distance calculation algorithm will be very fast and not take much resources. I assume dimension is constant for a single input file (1D or 2D or 3D etc. but not mixed, however this can be checked and error will be shown).