• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read string from Txt File and update database

#1
[eluser]Unknown[/eluser]
Hello to the CI Community

I'm new working with CI and I need to know if is possible do this with CI

I have this string in a TXT file

Code:
0000001R33      04/17/2011  04/18/2011  04/21/2011  2         0         Prueba de trama                                                                                                                                                                                                                                           33             Enrique                       Toribio                       511  016287943                               [email protected]                                   172 1         20.00                                        3         1         0              0              0  282            1 850       2         0         20                  0                   *

0000002R33      04/18/2011  04/20/2011  04/23/2011  2         0         Prueba de Integracion                                                                                                                                                                                                                                     33             Pruebas                       Ishtar-Medialab               51   511992589369                            [email protected]                                    172 1         20.00                                        3         1         0              0              0  282            1 139       2         0         20                  0                   *

0000003R33      04/19/2011  04/20/2011  04/23/2011  2         0                                                                                                                                                                                                                                                                   33             JAN                           SPERLING                      506  22259667                                [email protected]                                        1   1         20.00                                        3         1         0              0              0  282            1 139       2         0         20                  0                   *

Are 3 Different lines finishing in *

I want to take the different data (I have the length of each field) and update a database

I was reading about character_limiter

Is that correct? Or exist another way to do it?

Thanks in advance for your help


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.