How to Push 134 Char From Txt file-Array


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: How to Push 134 Char From Txt file-Array

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    How to Push 134 Char From Txt file-Array

    [Originally posted by JulieS]

    How would I Take a text file that has a unknown length, I want to extract 134 Characters at a time from this file and put into an Array to then eventually transfer into a database. Each record is 134 characters long.

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:How to Push 134 Char From Txt file-Array

    [Originally posted by HighCommander]

    Many different ways.. Is each record (134 Chars) on a seperate line, or do the records run together?

    Is it mixed types, or either all text, or all numeric?

    Knowing the layout of the text file is neede before any further help would be of value.

  3. #3
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:How to Push 134 Char From Txt file-Array

    [Originally posted by JulieS]

    THe data is a combination of Numeric and alpha characters. The main problem is that the data is not set to 134 characters per line. I know that each record will consist of 134 but they run all together like a big ball of yarn. I am not concerned with the layout yet I just want to pull the 134 char. strings out of the data file.

  4. #4
    Join Date
    Aug 2004
    Posts
    43,023

    Re:Re:Re:How to Push 134 Char From Txt file-Array

    [Originally posted by Jim]

    Use the get statement. The open statement should define the length.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center