Link to home
Start Free TrialLog in
Avatar of lightspd
lightspd

asked on

Reading in file extension from user input

Currently I have.

char *baseDir=".\\*."

what I want to do it be able to take a user input of variable length and add it to the end of the char.  I've tried strcpy and couple other ways.  Even tried reading in the users input as a char and just doig a for loop to add to the end.  I would appreciate any help.

Cheers.
ASKER CERTIFIED SOLUTION
Avatar of DanRollins
DanRollins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lightspd
lightspd

ASKER

Thanks worked great.