How to read the given mesh data in vtk file and write it into obj file format

Hello Team,
I have data in mesh vtk file as given below, How can I read and convert it to obj file format. I am just copying some part of the data for convenience. Thanks in advance
CELLS 20 70
1 0
1 1
1 2
1 3
1 4
2 2 3
2 2 1088
2 1088 4
2 3 4
2 5 2
3 891 1348 890
3 890 1349 891
3 890 1340 1076
3 1076 1349 890
3 890 1348 1340
4 1529 1520 1525 2411
4 882 884 2072 996
4 891 892 1347 1350
4 250 249 265 1233
4 1594 1596 1595 2408

Check this example https://kitware.github.io/vtk-examples/site/Cxx/IO/ConvertFile and try replacing vtkXMLPolyDataReader with vtkPolyDataReader and vtkPLYWriter with vtkOBJWriter