|
-
September 25th, 2002, 04:55 AM
#1
stupid question about arrays
if i have an array such as:
unsigned short m_usArray[1000];
and i fill it up with unsigned shorts, is there away i can write the entire array to a file with just one command instead of doing something like:
ofstream ("file.txt");
for( int i = 0; i < 1000; i++ )
{
fout << m_usArray[i];
}
fout.close();
?
cheers, bigdaz
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|