yaso21101975 wrote: > --- In [email protected], Ray Devore <[EMAIL PROTECTED]> wrote: >> thank's ray for your interrest > i am using visual c++ on windos platform > the file size is 10k byte and i have to read the wholl size > the type of this file is(.wav) i.e:pcm 8khz 8 bit mono > NOTE: > when i read the wholl size(using _read command)in one buffer and > trying to print this data only 1/4 bytesread is appear and the rest > of buffer was zeros. > but when i write this buffer(using _write command)into another file > the data in this file was correct. > this happens even if i change number of bytes read.
Well, if you are writing out the same number of bytes to a destination file and the two files match (e.g. 'fc /b' compare) then there's nothing wrong with the data read. If you try to dump too much data to the screen under Windows, the Console API barfs and won't display anything. Also, you should prefer fopen()/fread()/fwrite()/fclose() over the functions you are currently using. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* VerifyMyPC 2.0 Change tracking and management tool. Reduce tech. support times from 2 hours to 5 minutes. Free for personal use, $10 otherwise. http://www.CubicleSoft.com/VerifyMyPC/
