in reply to Opening a file for reading or writing (was: Newbie)

while(<FILE>) {
EEEK! UPDATE! change your open to
open(FILE, "height.txt") # > means write
Hope you didn't just wipe out your file . . . :O

Yup he did - I should have caught that, I did view the question BEFORE Corion added code tags - so <FILE> was not displayed in the while loop.

Sorry.

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--

Replies are listed 'Best First'.
Re: (jeffa) Re: Newbie
by padangboy (Initiate) on Mar 18, 2001 at 01:09 UTC
    It runs fine now. But it doesn't do anything to the text file I load.
    All of my datas stay the same