how to read file, split record line by line and save them to database
<p>A.O.A</p>

<p>I want to split the following code and save it into database:</p>

<pre><code>31201011281853000100000000710003
</code></pre>

<p>The format of splitting is</p>

<pre><code>31

(2010-11-28,18 53) yyyy-mm-dd,hr-min

0001 

0000000071 

0003
</code></pre>

<p>first I have to upload a file containing these codes and then read each record line by line, split each line in the format I mentioned above, and then save it to database.</p>
