Synchronous file comparison