An electrode for use in an electric spark machine has recording means integral therewith which stores an electrode information unique to the electrode. The electric spark machine reads the electrode information when the electrode is mounted thereon and stores it in a memory. The electric spark machine operates according to a machining program contained in the electrode information read from the memory while correcting misalignment of the electrode according to misalignment information contained in the electrode information.