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. |
|