I am suffering from the ERROR: invalid msh file format in gmsh2nek that both 2D and 3D files have been tested. I really appreciate it if someone can help to figure it out. Some lines at the beginning of the file have been listed below.
$MeshFormat
4.1 0 8
$EndMeshFormat
$PhysicalNames
1
1 1 "wall"
$EndPhysicalNames
$Entities
17 20 9 0
1 0 0 0 0
2 0.3 0 0 0
3 0 -0.3 0 0
4 -0.3 0 0 0
5 0 0.3 0 0
6 0.4949747468305576 0.4949747468306088 0 0
7 0.4949747468305576 -0.4949747468306088 0 0
8 -0.4949747468305576 -0.4949747468306088 0 0
9 -0.4949747468305576 0.4949747468306088 0 0
10 0.6917929696263546 0.6917929696264262 0 0
11 0.6917929696263546 -0.6917929696264262 0 0
12 -0.6917929696263546 -0.6917929696264262 0 0
13 -0.6917929696263546 0.6917929696264262 0 0
14 0.7071067811865109 0.7071067811865841 0 0
15 0.7071067811865109 -0.7071067811865841 0 0
16 -0.7071067811865109 -0.7071067811865841 0 0
17 -0.7071067811865109 0.7071067811865841 0 0
1 -0.4949747468305578 0.4949747468306085 0 0.4949747468305577 0.6346824944327563 0 0 2 9 -6
2 0.4949747468305577 -0.4949747468306087 0 0.6346824944327396 0.4949747468306088 0 0 2 6 -7
3 -0.4949747468305577 -0.6346824944327563 0 0.4949747468305578 -0.4949747468306085 0 0 2 7 -8
4 -0.6346824944327396 -0.4949747468306088 0 -0.4949747468305577 0.4949747468306087 0 0 2 8 -9
5 -0.6917929696263548 0.6917929696264264 0 0.6917929696263548 0.9746201095151733 0 0 2 13 -10
6 0.6917929696263548 -0.6917929696264264 0 0.9746201095151723 0.6917929696264264 0 0 2 10 -11
7 -0.6917929696263548 -0.9746201095151733 0 0.6917929696263548 -0.6917929696264264 0 0 2 11 -12
8 -0.9746201095151723 -0.6917929696264264 0 -0.6917929696263548 0.6917929696264264 0 0 2 12 -13
9 -0.7071067811865109 0.7071067811865841 0 0.7071067811865109 0.996194698091746 0 1 1 2 17 -14
10 0.7071067811865109 -0.7071067811865841 0 0.9961946980917451 0.7071067811865841 0 1 1 2 14 -15
11 -0.7071067811865109 -0.996194698091746 0 0.7071067811865109 -0.7071067811865841 0 1 1 2 15 -16
12 -0.9961946980917451 -0.7071067811865841 0 -0.7071067811865109 0.7071067811865841 0 1 1 2 16 -17
13 0.4949747468305576 0.4949747468306088 0 0.6917929696263546 0.6917929696264262 0 0 2 6 -10
14 0.4949747468305576 -0.6917929696264262 0 0.6917929696263546 -0.4949747468306088 0 0 2 7 -11