if i have an int main where i ask the user for a txt file then ask them to insert a string into it, how can i grab the string from that file and insert it into a function? Within the function parameters i cannot have the string itself, i can only have the filename, so how do i go about opening that file and using its string within the function?
for ex: (a code to encrypt/decrypt a Caesar Cypher)
If I understand your question correctly, you are simply trying to read a string from a file... Start reading this tutorial [ http://www.cplusplus.com/doc/tutorial/files/ ] and you should be able to do it easily.