J05HYYY
May 26th, 2009, 06:34 PM
hello, i am writing a program to read file extensions in C
here's my problem:
say if i had a file called "hello.dat" and i already know the length of the string (9), i already know the position of the "." (6) and i know how many characters i want to read (9-6=3).
what i don't know is how to put the characters "dat" into a new variable.
any help, much appreciated.
here's my problem:
say if i had a file called "hello.dat" and i already know the length of the string (9), i already know the position of the "." (6) and i know how many characters i want to read (9-6=3).
what i don't know is how to put the characters "dat" into a new variable.
any help, much appreciated.