wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Syncing files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Syncing files" Watch "Syncing files" New topic
Author

Syncing files

Kevin Carr
Greenhorn

Joined: Jan 19, 2010
Posts: 19
Ok, I'm building an app that I plan to distribute to several people. One section of it is a list of words. People can add new words, and all of those words are collected somewhere, I don't know where, and each time they run the program, it updates the list on their computer with words others have added. How exactly should I do that? What would be the most efficient method?
W. Joe Smith
Ranch Hand

Joined: Feb 10, 2009
Posts: 710
It sounds like you just need 1 data repository, then whenever each person runs the program it pulls the data from that repository. It would be up to you what type of repository (text file, XML, database), but that's what it looks like to me.


SCJA
When I die, I want people to look at me and say "Yeah, he might have been crazy, but that was one zarkin frood that knew where his towel was."
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

How about a web service?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kevin Carr
Greenhorn

Joined: Jan 19, 2010
Posts: 19
Hmmmm. ok. I was originally thinking keeping the program as a jar and then have a text file stored on their main drive that holds all of the new words, but I think maybe using an actual program installed into the program files. How exactly would I do that? and how would I make the installer? I know several other languages if that helps.
Kevin Carr
Greenhorn

Joined: Jan 19, 2010
Posts: 19
I am thinking of using a database. What does that involve doing? Sorry, never really made a program dealing with the internet before.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36514
    
  16
Kevin Carr wrote:I am thinking of using a database. What does that involve doing?
Start here ni the Java™ Tutorials.
Sorry, never really made a program dealing with the internet before.
Do it in little bits. Start with the database, then connect to Java.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Syncing files
 
Similar Threads
A query on keywords
Pronounciation of "Buzz Words"
What is your definition of Antipattern?
Swing Polish or Not to Polish
S2: autocompleter - how to populate a list based on user's input?