• Post Reply Bookmark Topic Watch Topic
  • New Topic

write in txt file, edit, display in joptionpane

 
Then Whut
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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?
 
Tony Docherty
Saloon Keeper
Posts: 3137
72
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!