|
From: Dominic W. <dwi...@cs...> - 2005-01-03 17:40:50
|
Hi Michiel,
I think the software should already have the feature you request. There's
a "-f" option and if you use
associate -f vector_output_file ....
it should print the results to the file named.
Another hack I've regularly used in the past is just
assocaite .... > filename
which I'm pretty sure should work on Cygwin.
Best wishes,
Dominic
On Mon, 3 Jan 2005, [iso-8859-1] Spap=E9, Michiel wrote:
> Dear list,
>
> Following my email earlier, I have a bit of a feature request, which I
> am willing to implement myself, but, to my misfortune, my knowledge of C
> is rather... restricted. What I want to do, is using Associate to send
> its nearest neighbour output (documents and words) to a text-file
> instead of to the screen. My experience in other programming languages
> tell me this shouldn't be much of a problem, so I hope someone can give
> me a clear answer.
>
> Now, I could be wrong here, but I think, this is the part where the
> output is printed:
>
> /* Print the result. */
> if ( !print_list( list, num_results_printed )) {
> =09fprintf( stderr, "Can't print output.");
> =09exit( EXIT_FAILURE);=09}
>
> What do I need to change in order to get my results written to a
> textfile? If someone with a bit of C-knowledge could help, I'd greatly
> appreciate it.
>
> Cheers,
>
> Michiel Spap=E9
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> the mailserver for the presence of computer viruses and executables.
>
> **********************************************************************
>
>
|