Basic Programming C++/Java

The only way you can learn programming is by writing a lot of code.

Watch the Video lectures on C++/ Java Programming (click the following links)
How to Install Eclipse
How to execute Java Programs using console/command prompt
Running Java Programs on Android Phone
Running C++ on Android Phones
Header Files – Creating and importing in your project
You are invited to raise queries by writing your question in the the box given below

File Handling

Abstractly, a file is a collection of bytes stored on a secondary storage device, which is generally a disk of some kind. The collection of bytes may be interpreted, for example, as characters, words, lines, paragraphs and pages from a textual document; fields and records belonging to a database; or pixels from a graphical image.

The meaning attached to a particular file is determined entirely by the data structures and operations used by a program to process the file. It is conceivable (and it sometimes happens) that a graphics file will be read and displayed by a program designed to process textual data. The result is that no meaningful output occurs (probably) and this is to be expected.

A file is simply a machine decipherable storage media where programs and data are stored for machine usage.

Essentially there are two kinds of files that programmers deal with

Text files and Binary files.

For every File Handling Programme , you need to do following steps evrytime

Step 1. Open your file ,specifying name and its mode using fopen()

Step 2. Perfoem desired operation on file

Step 3. Close the file using fclose()

Published by Expert_Talk

I like sharing article and discussion on emerging technologies. Love to share my knowledge on various latest trends and technologies.

One thought on “Basic Programming C++/Java

Leave a comment