Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2099
| From | Paul Joyce <pjoyce@whatsthis.ie> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: SImple question about file io |
| Date | 2011-04-01 05:21 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <a5979caa037e322685fbc9295ee7d644@ruby-forum.com> (permalink) |
| References | <2f3b59003ad3466c17243f27510084bf@ruby-forum.com> |
Hi Haruka Thank you for you help. I guess its a good idea to initialise vars. Adding opf = nil solves the problem, though I must confess to not being entirely sure why, since the initialisation should create it, and as far as I can tell it exists for the rest of the runtime, just closes and re-opens pointing to a different file. I mean the problem arises in the line following the File.new statement that defines opf ??? Anyway - it now works - thats the main thing! thanks again much appreciated Paul -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
SImple question about file io Paul Joyce <pjoyce@whatsthis.ie> - 2011-04-01 02:31 -0500
Re: SImple question about file io Haruka YAGNI <hyagni@gmail.com> - 2011-04-01 02:50 -0500
Re: SImple question about file io Haruka YAGNI <hyagni@gmail.com> - 2011-04-01 03:03 -0500
Re: SImple question about file io Paul Joyce <pjoyce@whatsthis.ie> - 2011-04-01 05:21 -0500
Re: SImple question about file io Haruka YAGNI <hyagni@gmail.com> - 2011-04-01 06:30 -0500
csiph-web