Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8865107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:25:12+00:00 2026-06-14T16:25:12+00:00

Possible Duplicate: ios::nocreate error while compiling a C++ code i have been working on

  • 0

Possible Duplicate:
ios::nocreate error while compiling a C++ code

i have been working on how to create a simple lexical compiler in c++/c# but it seems i have a an error when i try to compile the program the error is

error c2065 'nocreate' undeclared identifier 

how can i handle this problem??but im thinking maybe it has to do with the fstream header,any ideas on how i can handle it??

this is the code where it is giving me an error

loadTransitionTable( );

    fstream File("input.txt", ios::in|ios::Nocreate);

    if (!File)
    {
       cout<<"\n Unable to open the input file."<<endl;
       cout<<"\n Press any key to exit.";

       getch( );
       exit(0);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:25:13+00:00Added an answer on June 14, 2026 at 4:25 pm

    If you are with VisualStudio, try

    std::fstream File("input.txt", std::ios::in|std::ios::_Nocreate);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: iOS 6 and Location Services not working Our app's location services have
Possible Duplicate: Is Safari on iOS 6 caching $.ajax results? I have been having
Possible Duplicate: Removing First Annotation-MapView iOS I am working on mapview project. I have
Possible Duplicate: presentViewController: crash on iOS 6 (AutoLayout) I'm getting this error when clicking
Possible Duplicate: iPhone development on PC I have developed an iOS native application. My
Possible Duplicate: Stable way to embed open-source code into static library in iOS? I
Possible Duplicate: A non-nested animation sequence in jQuery? I have an html/css/js iOS app
Possible Duplicate: saving data in iOS Do we have a provision profile to select
Possible Duplicate: How to parse JSON in iOS App I have the following json:
Possible Duplicate: Showing a different XIB/NIB in an iOS app Currently I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.