So My Problem I have a program that makes a .txt file and I am trying to read it and it won't so I would like to know why my code is directly the same as the file maker so whatever the problem is just show me the code fixed so I can input into VS 2013 Pro and use it because I am inexperienced at C++
It's the same code for the filemaker That works i used same stuff the couts with the idnumber in all is for this address book program I'm working on files contain address entries
The >> operator will read the strings and numbers as if they were separated by whitespace characters (like space and newline). If you have all that "ID Number", "First Name", etc. in the file you will have to handle that when you read the file. Easiest is to simply leave it out and only have the actual variable values in the file.
That's what I type in but the file doesn't read if i say make a file with the entry maker where it is complimentary of the code you see here but when i add that text file it doesn't work
You may be putting in the wrong filepath in the console. Also @SamuelAdams he is using a variable named fershizzle as his filename it's an awful variable name but it's the one he uses to input the filename.