Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #21735
| From | Arved Sandstrom <asandstrom2@eastlink.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Reading a File |
| References | <4c68b43b-ee08-48fc-91fe-7f3f81213f69@vb8g2000pbb.googlegroups.com> <kdvpqt$539$1@dont-email.me> <a3fab57a-e94a-47c0-a634-c774a1a4f564@googlegroups.com> <1f99c3e0-3582-4487-8db2-af8c703c1222@googlegroups.com> |
| Message-ID | <LAPMs.98358$Sl.33904@newsfe27.iad> (permalink) |
| Organization | Public Usenet Newsgroup Access |
| Date | 2013-01-26 08:01 -0400 |
On 01/26/2013 02:48 AM, Lew wrote: > subhaba...@... wrote: >> Thank you Sir. It worked. Regards,Subhabrata. > > Actually, no, it didn't, but the bugs are of a nature that doesn't bother you yet. > Depends on how you run it as to whether that filename actually locates the source file. Overall the program itself "works". main() throws an exception, which may be acceptable for a console app. Hardcoding the filename isn't a defect unless you have a requirement to specify variable files. Having it in the default package ain't great, along with not using braces for the loop I'd nominate this as a latent defect. AHS
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reading a File Subhabrata <subhabangalore@gmail.com> - 2013-01-25 20:58 -0800
Re: Reading a File Knute Johnson <nospam@knutejohnson.com> - 2013-01-25 21:33 -0800
Re: Reading a File subhabangalore@gmail.com - 2013-01-25 21:53 -0800
Re: Reading a File Lew <lewbloch@gmail.com> - 2013-01-25 22:48 -0800
Re: Reading a File Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-01-26 08:01 -0400
Re: Reading a File Lew <lewbloch@gmail.com> - 2013-01-26 10:12 -0800
Re: Reading a File Knute Johnson <nospam@knutejohnson.com> - 2013-01-26 11:41 -0800
Re: Reading a File Lew <lewbloch@gmail.com> - 2013-01-26 13:01 -0800
Re: Reading a File Roedy Green <see_website@mindprod.com.invalid> - 2013-01-26 02:47 -0800
csiph-web