Hi again! is there any way a program can read a .txt file without typing the .txt extension name? I need this for my ATM program for accessing an account number, it wouldn't look right if i have type 1234667.txt. I'm using Borland C++. Hope you can help me! Thanks!
actually all you have to do is add this line strcat(account,string2); after the other strcat line
though i'm a little confused at what the purpose of string3 is. it would essentially be the same if you changed inFile.open(account) to inFile.open(string3). being that account is equal to string3 until the strcat line, which would then be equal after following the code mentioned in the previous paragraph.