answersLogoWhite

0

You can use functions fgets and strtok.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

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.


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.


Reading file information on removable cds or disks is made possible by the?

Reading Sensors..


Is reading the contents of a file delay sensitive or bandwidth sensitive?

When reading the contents of a _le from a remote server the decision to use either delay sensitive or bandwidth sensitive is dependant on the size of the file. For example small _les would be delay sensitive, while large _les are de_nitely bandwidth sensitive.


What is reading and writing files?

Reading and writing files refer to the processes of accessing and manipulating data stored in files on a computer. Reading a file involves retrieving its content so that it can be processed or displayed, while writing a file means saving data to a file, either by creating a new one or updating an existing one. These operations are fundamental for data storage, retrieval, and management in various applications. They typically involve using programming languages or software tools that provide functions to handle file operations efficiently.


How do you read and write video file in java?

you can use inputstream for reading the file java.io.fileinputstream and write the file using outputstream..


To read data which is superior 1. input stream 2. file reader?

First of all, these two classes are on different levels of abstraction. An InputStream is used for reading any stream of bytes, while a FileReader is used to read characters from a file. If you want to ask between a FileInputStream and a FileReader, then we need to look at what type of data you are reading. If you're reading plain-text file, for example, you want to use a FileReader because it was designed to read in characters. For other types of data, the FileInputStream would be better, as it is used to read in generic streams of bytes from a file.


What is the term used to describe a file that data is read from?

It is known as an open file. Files can be opened for reading or writing, or both.


What is File Processing in Turbo C?

In TurboC file-processing is opening, closing, reading, writing, deleting, copying, renaming... etc the files. In other contexts file-processing is opening, closing, reading, writing, deleting, copying, renaming... etc the files.


When reading data in a data file the data will be read?

in order it was written.


What is the difference between reading and writing?

When reading you use only your eyes. when writing you use your eyes and hand. For both reading and writing, it is used mainly your mind. When reading you don't need to think, unless you are studying. When writing you need to think. Moreover, when writing, the type of writing must be considered, because it may demand a more or less effort. When reading, the type of reading should be considered as well, specially when you are studying.


Is it possible to skip to a new line when reading from a file in c plus plus?

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.