Problem with C language

T

Tom Clancy

Below there is a sample script:

--------------------------------------------------


fh = fopen( "C:\\Temp\\myfile.kkk", "w");

list = CategoryGetSymbols( categoryWatchlist, 1 );

for( i = 0; ( symbol = StrExtract( list, i ) ) != ""; i++ )

{
fputs( symbol + " ", fh );
}


fclose( fh );

------------------------------------------------------


Ok, now the result is:

all symbol of "list" variable will be put in a single file in this manner:

A B C D E F G H ....


"BUT" I want the list of symbol must be "below" other.

A
B
C
D
..
..
..
..



How I can resolve my problem?
Thanks in advance for your help.

Tom
 
T

Tom Clancy

Below there is a sample script:
list = CategoryGetSymbols( categoryWatchlist, 1 );
for( i = 0; ( symbol = StrExtract( list, i ) ) != ""; i++ )
{
fputs( symbol + " ", fh );
}

fclose( fh );


Ok, now the result is:
all symbol of "list" variable will be put in a single file in this manner:
A B C D E F G H ....

"BUT" I want the list of symbol must be "below" other.



How I can resolve my problem?
Thanks in advance for your help.

resolved.

I've changed comma "," with "\n"
 
A

AliceInWonderland

Tom Clancy wrote:
[whatever he wrote, he wasn't askin his mommie, he wanted to ask alll you
gay C++ guys, not that there is anything wrong with that.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top