• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

text file ?? simple program

 
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to generate a text file that contains a random string of letters ?
it should be able to control the number of letters in one line and the number of lines in the text file.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need a loop that runs for every line you want to generate; a loop that runs for the number of characters you want to generate; and a method to generate one of 26 characters.
Why would you pose this question in the advanced forum?
 
mark stone
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the solution.
did you mean to say that this question is not quite ok for this forum, ie advanced. let me know because i have some more such questions that i forsee that may come up and the appropriate forum where i can post them.

Originally posted by Michael Ernest:
You need a loop that runs for every line you want to generate; a loop that runs for the number of characters you want to generate; and a method to generate one of 26 characters.
Why would you pose this question in the advanced forum?

 
Michael Ernest
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark -
There's a good point behind this exchange, which is that the terms beginner, intermediate, and advanced can be quite relative to whoever's posting.
I'd say, for starters, post your questions in JiG Beginners. If the questions appear beyond the average crowd in there, I'm sure the moderator will eventually suggest Intermediate, and so on.
Probably the easiest way to tell, though, is by reading other posts. If they're way over your head, drop down a level.
reply
    Bookmark Topic Watch Topic
  • New Topic