Welcome! Log In Create A New Profile

Advanced

Failure to open File

Posted by Lorette 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Failure to open File
January 31, 2009 05:34PM
When writing my I/O File programs, none of the programs will open the file linked to the program even when following guides from Savitch.
Did create them as notepad files and saved them to same path as dev C. Just geting the fail to open message. Any ideas why?
avatar Re: Failure to open File
February 01, 2009 01:10AM
post your code and absolute path of file, compiler and source.

Adults are always asking little kids what they want to be when they grow up because they are trying to get ideas.
- Paula Poundstone
Anonymous User
Re: Failure to open File
February 01, 2009 07:11AM
Did you save the notepad file as .dat or .txt? Is it the same as in your program?
Re: Failure to open File
February 03, 2009 04:24PM
Saved it as txt, same as in the program.
ifstream in_File;
ofstream out_File;

in_File.open("as1qu4in.txt"winking smiley;
Re: Failure to open File
February 04, 2009 12:02AM
lorette could u please post the entire program. mayb the problem is not there
Re: Failure to open File
February 04, 2009 12:07AM
another thing did u include the file library? eg #include <fstream>
avatar Re: Failure to open File
February 04, 2009 10:23AM
Lorette Wrote:
-------------------------------------------------------
> When writing my I/O File programs, none of the
> programs will open the file linked to the program
> even when following guides from Savitch.
> Did create them as notepad files and saved them to
> same path as dev C. Just geting the fail to open
> message. Any ideas why?


As indicated by Spitfire ...post your code and then we'll be able to help you !thumbs up smiley
Re: Failure to open File
June 01, 2009 02:56PM
Hi guys, can anybody with COS 112, 113 , INF 151, INF120, MAT111, 112, 130 AND STS 105 previous materials(tutorial letters, solutions to addignments and question papers), Id appreciate it if the format would be electronic(PDF) or hard copies. Please reply to: themba_4@yahoo.com.

Peace and stay blessed!
Sorry, only registered users may post in this forum.

Click here to login