@spiceErrorCheck<EOL>def dskopn(fname, ifname, ncomch):
fname = stypes.stringToCharP(fname)<EOL>ifname = stypes.stringToCharP(ifname)<EOL>ncomch = ctypes.c_int(ncomch)<EOL>handle = ctypes.c_int()<EOL>libspice.dskopn_c(fname, ifname, ncomch, ctypes.byref(handle))<EOL>return handle.value<EOL>
Open a new DSK file for subsequent write operations. 

https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/dskopn_c.html

:param fname: Name of a DSK file to be opened. 
:type fname: str
:param ifname: Internal file name.
:type ifname: str
:param ncomch: Number of comment characters to allocate. 
:type ncomch: int
:return: Handle assigned to the opened DSK file.
:rtype: int