answersLogoWhite

0

To skip to a new line when reading from a file, assuming you are using a sequentially organized file, the usual case, you need to read and discard characters until you encounter the end-of-line character.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can you read a file after created by a program in C plus plus?

Yes. You can either create a file for both reading and writing, or you can re-open a file for reading after creating and writing to it.


How can you increase your reading level in reading plus?

To increase your reading plus level reading and answer the question and pick the best one and for close plus look at the number think about what can fit the line.


C plus plus reading and writing a file?

Use an input file stream (ifstream) to read from a file and an output file stream (ofstream) to write to a file. Both can be found in the <fstream> standard library header.


Is it possible to write a C plus plus or java program to draw an activity flow diagram given the sequence as a text file input and store the diagram in an output file?

Yes, this is possible.


How to get sessions without doing them on reading plus?

That is not possible just do the sessions


What is a statement used to open data file in c plus plus?

FILE* fopen(<filename>, <mode>); E.g., FILE* f = fopen("C:\\Users\\<user_name>\\My Documents\\data_file.dat", "rb"); Opens the specified file for reading ("r") in binary mode ("b").


What is file handling in c and c plus plus or objective c?

File handling is simply the process of opening, reading, writing and closing files. Files are simply streams for input and output, or the "serialisation" of objects. In other words, reading and writing data to and from disk storage.


What is Reading Plus about?

Reading Plus is a site that helps students with their reading skills.


How do you write in certain line in file by C plus plus?

There are several ways, depending on whether you wish to edit the file directly or load the file into memory to perform the edits. Editing the file directly is seldom recommended -- a better alternative is to make a temporary copy of the file, splitting the file at the insertion point to create two temporaries. Append the inserted text to the first temporary, then append the second temporary. Finally, delete the original file and rename your temporary. You pretty much do the same thing in memory, except you first create an array to store the entire file plus the inserted text, read the first portion of the file into the array up to the insertion point, then insert your new line before reading the remainder of the file. Then write the array back to a new file. Delete the original file then rename the copy. The best method, of course, is to read the entire file into memory first, then perform as many insertions as required before writing back to disk. But always write a copy -- never the original file. Once the copy is made, you can safely delete the original and rename the copy. This ensures the original file doesn't become corrupt if something goes wrong during the save.


What is reading plus?

a substain slient reading program


Is there a file concept in c plus plus?

No. The standard does not define nor require a file concept.


Is plus 50 reading glasses bad?

Plus 50 is impossible.Plus 5 is possible but incredible.The strongest I have ever seen or used is +3.5Plus 0.5 is just barely any strength at all.