I would like to know if there is a way to delete part of a string in c++ and save the remaining part in a variable.
com is an input from the user ,like (example: Write myfile)
i want to delete Write from this input to obtain only (myfile) tu use as name for a file to be created. Writevariable contains the string (Write ). Com is the input and names is the variable in which to save the name of the file.
write.names = com – write.Writevariable;