Skip to content

"r"33#181

Merged
usernamealreadyis merged 6 commits intoGistIcon:gh-pagesfrom
xccvv:gh-pages
Feb 6, 2016
Merged

"r"33#181
usernamealreadyis merged 6 commits intoGistIcon:gh-pagesfrom
xccvv:gh-pages

Conversation

@usernamealreadyis
Copy link
Contributor

When we use Java to write something to a file, we can do it in the following two ways. One uses FileOutputStream, the other uses FileWriter.

Using FileOutputStream:

File fout = new File(file_location_string);
FileOutputStream fos = new FileOutputStream(fout);
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));
out.write("something");

fix: @GistIcon/bola #33

Merge pull request #40 from GistIcon/master
When we use Java to write something to a file, we can do it in the following two ways. One uses FileOutputStream, the other uses FileWriter.

Using FileOutputStream:


.....
File fout = new File(file_location_string);
FileOutputStream fos = new FileOutputStream(fout);
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));
out.write("something");
.....
@usernamealreadyis usernamealreadyis added this to the Assembly: mscorlib milestone Feb 6, 2016
@GistIcon GistIcon locked and limited conversation to collaborators Feb 6, 2016
usernamealreadyis added a commit that referenced this pull request Feb 6, 2016
@usernamealreadyis usernamealreadyis merged commit 60ee518 into GistIcon:gh-pages Feb 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants