This paper introduces a key technology for task processing in ternary optical computer(TOC) - the operation-data file (SZG file). Firstly, we analyze and summarize the data processing advantages of ternary optical computer. Then, we propose the design principles of SZG file and provide a detailed explanation of the significant role played by SZG file in the task processing process. Next, we will propose the design principles of SZG file and provide a detailed explanation of the significant role played by SZG file in the task processing process. Furthermore, we will discuss how to construct a collaborative task processing mechanism based on SZG file, focusing on the format of SZG file and the task classification strategy based on SZG file. Finally, we will conduct experimental testing on the ternary optical computer platform using a specific example. Tasks can be executed correctly in parallel on ternary optical computer, successfully coordinating the differences in task processing characteristics between electronic computers and ternary optical computer. These will establish a bridge for collaborative work between electronic computers and ternary optical computer, while also providing new ideas for other emerging computing systems in terms of task processing methods.