The problem is that, after I get the information, how do I use it? As in, how can I get the data to actually transfer to another file, or to use it in another function? I also noticed that the data from the .txt disappears after running the program - how can I prevent this? :confused: I don't even think i'm using the proper 'get' function to get a whole line.

However, get() should have worked for you if you had given it the parameters it needed:
istream& get( char* pch, int nCount, char delim = '\n'_);

When you "get" something, you also need to put it somewhere. For that, you need to declare a character array, AKA a "buffer", to hold the data that you get. That array must be large enough to hold an entire line plus one character (that extra character being the null-terminator that marks the end of the string). In the two parameter lists given above, pch is the name of the buffer that you have declared and nCount is the maximum number of characters that you will read in (should be buffer size minus one). You do not need to include the third parameter, which defaults to "new-line".

After the get/getline, buffer now contains the line that was read in. Now you can output the contents of buffer to the display screen and to the output file. Then you get/getline the next line in the input file and repeat until you have read and processed the entire input file.

However, the reason why I didn't want to use the getline function is because the text file has a mixture of names and numbers (how much they earn in $$); so I wanted to somehow store their names separately from storing the numbers; so I can work with the numbers. Is there a way of splitting the the information after you use getline; or is there another 'get' function where it gets a row of characters, and stops at a white space.

So it'd resemble something like a user input (which is really what i'm looking for):

You can use getline. The parameters for getline are istream& getline (char* s, streamsize n, char delim );

edit: This would work the best (I found an old program to look at, look for example below):
Alternatively you may also just want to try inData >> str1 >> str2 >> str3 >> int1;
I haven't done this for awhile and I don't have any old code to look at atm or else I'd give you a definite yes/no. The below would work though.