Hi,
I'm using bulk write using the fwrite function and i'm writting the charachter array. i am getting some unwanted spaces written in the output. my output is variable length. how to elimate the spaces thru fwrite function. My array widht is 4000 and lenght is 50000.
asciiz is a charachter array of lenght 4000
asciiz data_to_write[50000];
fwrite(data_to_ write,sizeof(as ciiz),50000,dat File);
Thanks in advance,
Abu
I'm using bulk write using the fwrite function and i'm writting the charachter array. i am getting some unwanted spaces written in the output. my output is variable length. how to elimate the spaces thru fwrite function. My array widht is 4000 and lenght is 50000.
asciiz is a charachter array of lenght 4000
asciiz data_to_write[50000];
fwrite(data_to_ write,sizeof(as ciiz),50000,dat File);
Thanks in advance,
Abu
Comment