and license from future for 6.0 data.if so how i can do this.if any one tell me i will visit my dream.i am working as a salesman and have strong knowledge in computers. i am new in software developing i want to be a co.firm.and i have my own software that i am going to sell it soon.sir please reply to my mail thanks in advance.
A:
The version information is kept in the header of the file. For example:
MS-DOS Version 5.0
and
Microsoft Windows for Workgroups Version 5.0
The product version is found by searching the header of the file for the string "MS-DOS Version".
So you need to search for the string "MS-DOS Version". I think this has a space after it as well.
Look for the position of the first space character, then starting with the character position +1, search for the string "MS-DOS Version".
Something like this:
#define BUF_SIZE 4096
char buffer[BUF_SIZE];
int bytes_read;
FILE* infile;
infile = fopen(filename, "r");
if (!infile) {
printf("Error opening %s
", filename);
exit(1);
}
fseek(infile, 0, SEEK_SET);
bytes_read = fread(buffer, 1, BUF_SIZE, infile);
int pos = 0;
while (bytes_read > 0) {
char *found = strstr(buffer, "MS-DOS Version");
if (found) {
pos = found - buffer;
break;
}
bytes_read = fread(buffer, 1, BUF_SIZE, infile);
You should then be able to call the version specific functions.
Hope that helps.
Weird nichts sind normal
Weird nichts sind normal (Weird Things Are Normal) is a musical by the German theatre collective Henke, Köck, and Kovac. It was premiered in Bochum in 2007.
The play, a
Related links:
Comments