【100分不够再加】求助关于文本问档转换到数据库的问题
目前问题:
存在文本文件,其里面包含有许多种数据结构
如:
第一行(一种数据结构):
INITRT CN92 GPL120060118090337
第二行(另一种数据结构):
A0.1242201500621CABLE CLAMP FIX NY66 52X14MM B 32PF9531/79 N
第三行(第三种数据结构):
B1.10005120. 31043284420113 01.000 None LNO
其数据结构属于哪一种主要靠前面4位字母来区分,每种数据结构的字段是直接通过字符长度来区分的,中间没有间隔符。拿第二行来说:
Name Format Remark Position
Interface Message Line Code X4 "A0.1" 1 - 4
Child 12NC X12 5 – 16
Description X30 17 – 46
Clogs Code X6 47 – 52
ESD Indicator X1 53 – 53
Component Supplier X10 54 – 63
Component Type Number X30 64 - 93
Critical Component Indicator X1 94 - 94
Critical Safety Component X1 95 - 95
请问我该怎么样才能把文本文档中的每种结构转换到数据库的每张表??