1.) Open the Blender and delete default cube.
2.) Add or create any mesh you want.
3.) After you are content with your creation, go to edit mode and press x and then delete only faces.
4.) Then, select File => Export => Wavefront (.obj)
5.) Save file with only following options: Include Edges, Keep Vertex Order