Simple Coding Question (Java) about .txt files
Posted: Fri Dec 09, 2011 8:05 pm
Hey guys...
I started playing Minecraft a week or two ago, and right now I'm trying to set up a banking company.
To aid in the running of the bank, I'm trying to design a java program that I will be able to input account data into. However, it's been nearly a year since my last programming class, so I don't quite remember how to do everything.
I need the program to input new account names into a .txt file and then be able to search for the account name and update it when needed.
How do I do this? Also, should I put all the values into one file, or would the programming be smoother/easier if I had the program make a separate file for each new account (can java create new files, or can it only modify ones already created?)?
I started playing Minecraft a week or two ago, and right now I'm trying to set up a banking company.
To aid in the running of the bank, I'm trying to design a java program that I will be able to input account data into. However, it's been nearly a year since my last programming class, so I don't quite remember how to do everything.
I need the program to input new account names into a .txt file and then be able to search for the account name and update it when needed.
How do I do this? Also, should I put all the values into one file, or would the programming be smoother/easier if I had the program make a separate file for each new account (can java create new files, or can it only modify ones already created?)?