You are not logged in. Please login at www.codechef.com to post your questions!

×

C++ FILE HANDLING ISSUE

suppose there are 3 lines written in a txt file .And i am pickking up words 1 by 1 and putting it into an array using a variable 'ch' and comparing that if(ch=='\n') { break;

}

so now how can i read the next line and what will be the syntax so that my variable 'ch' goes to next line of the file????...

asked 26 Sep '17, 23:42

devil_1727's gravatar image

0★devil_1727
1
accept rate: 0%

edited 27 Sep '17, 00:01

vijju123's gravatar image

5★vijju123 ♦
13.9k11240

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×282

question asked: 26 Sep '17, 23:42

question was seen: 139 times

last updated: 27 Sep '17, 00:01