我在文件中有数据
File : Student.txt
AB,A1
BC,A2
CD,A3
,A4 --> not in proper format position value is missing
MM,A5
SD --> not in proper format position value is missing
How to write code so that the Position 0 : AB , Position 0 : A1 should be with comma (,)
如果其中一个不存在,则两个位置值都应该存在,那么它应该显示消息,例如文件格式不正确