#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Brisbane,Q,Au
    Posts
    16
    Rep Power
    0
    Hello Everyone,

    I would like to pull certain data from one data file and print it to another file ( for back up purposes.)

    The first data file is setup like this:
    order.db
    ID|name|address|company|email
    For example i would like to grab the info name and email from order.db and print it to email.db

    Any Ideas?

    Thanks Wazza
    Still learning
  2. #2
  3. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    open file1
    read file1
    close file1


    open file2
    loop through file1
    match each field with an RE
    print $2 and $5 to file2
    close file2
    [/code]


    [This message has been edited by RyanP (edited November 12, 2000).]

IMN logo majestic logo threadwatch logo seochat tools logo