Thread: homework (reading and writing a file)

  1. #16
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by time4f5 View Post
    Ok. I have it narrowed down to the file attachment process. I have googled the process to no avail. Here is what I did, if you see something wrong with my process, please let me know. I use Visual Studio 2010 professional Edition C++. I selected new, then file. In the file box I selected text file. once I opened it up and put the information into it, I saved it. Then I selected project, add it to existing. and it shows up under my project box on the left side off the screen below my source code.

    If this is the correct process then maybe there is something in my settings that I need to adjust. any insight on that would be helpful as well. thanks.
    Ok you have the file saved... WHERE did you save it?

    It has to be in the same folder as the executable for you to open it without a path name. As I mentioned earlier if you are making both debug and distribution copies of the exe file, you will need to put one copy in each folder...

  2. #17
    Registered User
    Join Date
    Mar 2011
    Location
    Baltimore Md. USA
    Posts
    58
    I'll have to do that. thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. reading and writing to a binary file
    By greg677 in forum C Programming
    Replies: 2
    Last Post: 05-24-2010, 08:09 PM
  2. Problems installing Mingw5.1.4
    By BlackOps in forum C Programming
    Replies: 2
    Last Post: 07-26-2009, 03:28 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. file writing and reading
    By Micko in forum C Programming
    Replies: 8
    Last Post: 01-13-2004, 11:18 AM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM