It should, try it. Just make sure file1 is declared big enough to hold the string.