Can someone help?...I'm a mac user and I need to know how to create an input.dat file in my project so it can read off data in the file. I tried adding a new file but when i try to open it on my program w/"input.dat"); the program doesn't execute.... help!

I'm not a MAC user but it sounds like the data file is not in the same directory as where your program is running. Try putting the full path in the open statement, like this: Note: I don't know a thing about MAC file system so I'll use MS-Windows and you can translate to MAC"someFolder\\input.dat");