Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,438

    Re: file reading & writing

    I don't really know what you're trying to do with the Formatter. I'd recommend just using a FileOutputStream at first. What does the Formatter give you?
  2. Replies
    7
    Views
    1,438

    Re: file reading & writing

    Hmm, maybe, it really depends on what you're doing. I don't know what Exists is, but I'm assuming that's pseudocode for a real method. What happened when you tried?
  3. Replies
    7
    Views
    1,438

    Re: file reading & writing

    Well, you could either read the file line by line, searching each line, or you could read the whole file into a data structure of some kind, then search that. There are a ton of ways to do it, it's...
  4. Replies
    7
    Views
    1,438

    Re: file reading & writing

    The FileOutputStream has a constructor that takes a boolean- whether the file should be overwritten or appended. That's a good google keyword, something like "java file io append" would probably get...
Results 1 to 4 of 4