Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^4: Moving data in a tree

by wade (Pilgrim)
on Jul 21, 2008 at 21:36 UTC ( #699159=note: print w/replies, xml ) Need Help??

in reply to Re^3: Moving data in a tree
in thread Moving data in a tree

In general, if I don't have a memory crisis, I'd:

  • read the whole file into a suitable data structure,
  • manipulate the data structure, and
  • write the data structure out to a new file.

That makes things easier to code and, since you have before and after files, easier to check.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://699159]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2016-10-27 14:33 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (364 votes). Check out past polls.