 
            
            
            
            
                18 Apr
                
                    2009
                
            
            
                18 Apr
                
                '09
                
            
            
            
        
    
                10:24 p.m.
            
        AMDG Steven Ross wrote:
What is the best platform-independent file I/O approach to use for writing and reading bytes? ofstream writes 4031 bytes when I tell it to write 4000 on Windows, so that doesn't seem appropriate.
You probably need to open the file in binary mode. In Christ, Steven Watanabe