Discussion Board
Go to the previous messageThere are no next messages
Current Forum: Homework 5 - Part 3
Date: Mon Nov 19 2001 12:02 am
Author: Dozzi, Giancarlo <gdozzi@andrew.cmu.edu>
Subject: Re: FileOutputStream

FileOutputStream can only write bytes, so you need to do this:

String myString;
stream.write(myString.getBytes());

The String function getBytes() returns all the bytes that make up the characters of the String.
Post response

Go to the previous messageThere are no next messages
Current Thread Detail:
FileOutputStream      Jen, Cindy Dar-Shuan      Sun Nov 18 2001 11:12 pm       
Re: FileOutputStream      Dozzi, Giancarlo      Mon Nov 19 2001 12:02 am       

Back to previous screen