I'm familiar with writeInt, writeLong, etc., methods for writing primitive numerical data types to a file, but does Java provide a similar method for writing Stringdata to a file?
It depends what you want. Which writeInt() etc. methods are you using - i.e. what class?
If we're talking about java.io.ObjectOutputStream class, you have two choices for writing String. You can use writeObject(), as a String is an Object. Or you can use writeUTF(), which writes the String more compactly and is specific to String data.
Note that, if you did want to write String to a text file, PrintWriter and FileWriter are usually preferred to PrintStream, because PrintStream has encoding issues (see its JavaDoc).
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.<br /> <br />#:^P