• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

write in txt file, edit, display in joptionpane

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how do i:

write in .txt file: automatically create 100 blank records (fields: record id,name,age,etc) in a .txt file at the start of the program. record id wont be blank
edit: i will enter a record id (ranging from 1-100) to add or edit data to the blank record, record id cant be edited
display in joptionpane: i will enter a record id and all corresponding data will be displayed in JOptionpane (i know how to use joptionpane to display stuff, but i dont know how to display only the selected data from a .txt file)

can anyone please help to me how to do a program like this?
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

can anyone please help to me how to do a program like this?


We won't just do your homework for you but we will help if you show you have made some effort.
Which bit are you stuck on and what have you tried so far?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic