|
I call dos to generate a txt file, how to read a certain data
int main ()
{
system ("dir e:\\>> 1.txt");
system ("pause");
return 0;
}
Generate a file as follows:
The volume in drive E has no labels.
The serial number of the volume is 2415-BC8C
E:\'s directory
2006-12-30 14:45 0 1.txt
2006-12-30 14:38 <DIR> lrc
2006-12-17 19:58 <DIR> mhpa
2006-12-16 14:29 <DIR> netgame
2006-08-15 08:52 <DIR> soft
2006-06-15 13:05 <DIR> update
1 file 0 bytes
5 directories 918,061,056 bytes available
I want to call the byte "918,061,056" of the remaining disk space in another file. How can I achieve this? |
|