![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: Canada
Posts: 113
Rep Power: 4
![]() |
Adding Info In Text Files
I want to be able to edit and view info of users using my java program. How would i do that?
|
|
|
|
|
|
#2 |
|
Newbie
Join Date: Apr 2005
Location: NC,USA
Posts: 17
Rep Power: 0
![]() |
Sounds like you want to steal user info.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Posts: 19
Rep Power: 0
![]() |
lol...
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: Canada
Posts: 113
Rep Power: 4
![]() |
not steal....i meant i am making a program that's too big to post here, i want something from which i can view other ppl's info and edit them within the program.
|
|
|
|
|
|
#5 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Other people's info in what? Windows? Linux? Your program?
|
|
|
|
|
|
#6 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: Canada
Posts: 113
Rep Power: 4
![]() |
I guess i wasn't clear earlier. I'll put it in steps.
1) i made a program 2) i want to add user profiles to it 3) i think the user profiles would be saved on a text file (not sure about this part) 4) then i added an address book to save a user's info 5) finally i want to be able to edit this info using my program rather than changing its code. 6) i try to post it here but its sorta too big. 7) i try to post it here as an attactchment but .java isn't allowed. 8) so i ask for help here. can someone tell me how i can do that in MY PROGRAM. I AM NOT TALKING ABOUT ANY WINDOWS ACCOUNT OR A GAME ACCOUNT. I AM TALKING ABOUT MY PROGRAM. hope this is better Last edited by Dark Flare Knight; May 1st, 2005 at 12:57 PM. |
|
|
|
|
|
#7 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
Yes. Make a User class with a function that will read in all its info from a stream. Once you open the file, read in Users and stick them on an array list until end of file. Or did you want implementation
![]() |
|
|
|
|
|
#8 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Stick it in [code] tags - it'll be fine, I promise. To help you, we really need to know how your user database is structured.
|
|
|
|
|
|
#9 |
|
Hobbyist Programmer
Join Date: Mar 2005
Location: Canada
Posts: 113
Rep Power: 4
![]() |
If u give me ur msn or aim, i'll send u the code.....or i could email it to u.
Btw, i don't know how to use [] these. I won't learn them until next year so if u could explain a bit, it would be helpful. Last edited by Dark Flare Knight; May 1st, 2005 at 9:21 PM. |
|
|
|
|
|
#10 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Put your code inside them:
[ code] Blah Blah Blah [/code] (but remove the space from the first one). It will look like this: Blah Blah Blah |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|