About input 10MB file to code. 
Author Message
 About input 10MB file to code.

Hi...everyone
  I want input 10MB file in my code.
 And I use XXX.read(buffersize,1024) to control size to input.
 But,only I can load data one time.
 I can't input next data.
 How can I do to input data coutinue until end of file.
 Or I must use another ways to do this job.
 Thanks for any reply.


Fri, 18 Feb 2005 13:03:20 GMT  
 About input 10MB file to code.
Hi,

You can try the following code snippet:

while ( XXX.read(buffersize,1024))
{
..

Quote:
}

Then, use XXX.gcount() to get the last unformatted input operation. I hope
this helps.

Best Regards,
Leo Chen

This posting is provided "AS IS" with no warranties, and confers no rights.

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

| Subject: About input 10MB file to code.
| Date: Mon, 2 Sep 2002 13:03:20 +0800
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

| Newsgroups: microsoft.public.vc.language
| NNTP-Posting-Host: 61.221.212.235
| Path: cpmsftngxa08!tkmsftngp01!tkmsftngp08
| Xref: cpmsftngxa08 microsoft.public.vc.language:170180
| X-Tomcat-NG: microsoft.public.vc.language
|
| Hi...everyone
|   I want input 10MB file in my code.
|  And I use XXX.read(buffersize,1024) to control size to input.
|  But,only I can load data one time.
|  I can't input next data.
|  How can I do to input data coutinue until end of file.
|  Or I must use another ways to do this job.
|  Thanks for any reply.
|
|
|



Sun, 20 Feb 2005 11:56:41 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. input file is an .avi file

2. Count words from an input file via file redirection

3. Data Input/Output - New Code- disregard last message

4. modify this code to split input into two variables

5. RLE code needs to accept array input

6. input mask source code

7. Input Method code from book not working ...

8. input, output, input/output parameters?????

9. Learning to read from an input file

10. Invalid input in text file

11. Invalid input in text file

12. Number of columns in an input file!!

 

 
Powered by phpBB® Forum Software