Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^4: Remove a Line

by PilotinControl (Monk)
on Apr 01, 2013 at 00:14 UTC ( #1026396=note: print w/replies, xml ) Need Help??

in reply to Re^3: Remove a Line
in thread Remove a Line

The Data file here is the output to the file and the screen:
There are 16 Car(s); <---- This line needs to be removed
There are 4 Hopper Car(s) <---- This is the output
Which is false there are Not 16 cars there are only 4 cars.

Replies are listed 'Best First'.
Re^5: Remove a Line
by Anonymous Monk on Apr 01, 2013 at 02:14 UTC

    What file? You're opening two files, both are "data" files, do you mean the input file?

    Your program opens an input file for reading

    opens an output file for writing

    writes stuff to output file

    It doesn't modify input file

    Do you want to modify the original file, do you want to rename outputfile to inputfile?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026396]
[Discipulus]: I already know how much distinct paths exists but to demonstrate the property i want to have them all
[oiskuu]: ie C(n, k); where n is height difference, k is position in the line
[Discipulus]: infact there are 70 distinct path to reach the tale wich holds 70
[Discipulus]: what i want is to compute them
[oiskuu]: You want to draw the path? $iter = combinations( $TOP_HEIGHT .. $NODE_HEIGHT, $pos); then get the path from the iter, level change at depth x, for(..) $pos += $level_change; something like that
[oiskuu]: yergh, <code> tags... [$top_height .. $node_height]

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2018-03-19 11:05 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (239 votes). Check out past polls.