Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Output, wrong documentation #82

Open
juanmirocks opened this issue Mar 29, 2013 · 1 comment
Open

Basic Output, wrong documentation #82

juanmirocks opened this issue Mar 29, 2013 · 1 comment

Comments

@juanmirocks
Copy link

I read in: http://jesseeichar.github.com/scala-io-doc/0.4.2/index.html#!/core/basic_output

that each write opens a new file connection and writes at the beginning. I've done a basic test, and in fact each write writes at the end of the file, that is, they append.

Furthermore, the suggestion in the comment of using openOutput is not anymore valid; the Output trait does not have that method, but it has outputProcessor. But even then, the OutputProcessor doesn't have itself a write method. The doc api from http://jesseeichar.github.com/scala-io-doc/0.4.2/api/index.html#scalax.io.processing.OutputProcessor illustrates the example of using the method asOutput but that doesn't exist either.

So I'm totally confused. Question, how can I write to a file in a batch?

@jesseeichar
Copy link
Owner

See
http://jesseeichar.github.com/scala-io-doc/0.4.2/index.html#!/core/multiple_writes_single_connection

Jesse
On Mar 29, 2013 12:51 PM, "Juan Miguel Cejuela" [email protected]
wrote:

I read in:
http://jesseeichar.github.com/scala-io-doc/0.4.2/index.html#!/core/basic_output

is that each write opens a new file connection and writes at the
beginning. I've done a basic test, and in fact each write writes at the
end of the file, that is, they append.

Furthermore, the suggestion in the comment of using openOutput is not
anymore valid; The Output trait does not have that method, but it has
outputProcessor. But even then, the OutputProcessor doesn't have itself a
write method. The doc api from
http://jesseeichar.github.com/scala-io-doc/0.4.2/api/index.html#scalax.io.processing.OutputProcessorillustrates the example to use the method
asOutput but that doesn't exist either.

So I'm totally confused. Question, how can I write to a file in a batch?


Reply to this email directly or view it on GitHubhttps://github.com//issues/82
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants