Following example shows how to set class path when classes are stored in a .jar or .zip file.
c:> java -classpath C:\java\myclasses.jar utility.testapp.main
Result
The above code sample will produce the following result.
Class path set.
Showing posts with label files. Show all posts
Showing posts with label files. Show all posts
Anatomy of an ASP.NET Application
ASP.NET applications are generally divided into multiple Web pages. Every Web page in an ASP.NET application shares a common set of resources and configuration settings.
Each ASP.NET application is executed inside a separate application domain. These application domains ensure that even if a Web application causes a fatal error, it does not affect other applications that are currently running on the same computer.
Each Web application is a separate entity that has its own set of data. It can be described as a combination of files, pages, handlers, modules, and executable code that can be invoked from a virtual directory on a Web server.
Directories Used in ASP.NET Web Applications:
Bin: Stores all the compiled .NET components (DLLs) that an ASP.NET Web application uses.
Networking
Networking is the form of computer communication generally used for exchanging data and information. Two or more computers are connected together or networked by some types of communication media (wire or cable) to form a data path as to exchange program and data files between them.
Networking allows accessing shared output devices and data storage connected to the network. Examples of shard devices are printers, plotters and hard disks.
Need
Networking satisfies a broad range of purposes and meets various requirements. Networking has become essential for the following reasons:
1. File sharing
2. Resource sharing
3. Unlike equipment and communication.
4. To improve speed and accuracy.
5. Low cost.
6. For instant availability of data.
File Sharing
Networking enables a user to share files between all the connected computers. For example, the users of an organization having its different offices at distant places in a city, which are physically separated but are connected on a network, can share their files and data without moving physically to each and every office.
Resource Sharing
Laser printers and hard disks can be expensive. Networking enables users to share such resources by networking several computers together. For example, a company with say 20 users, each requiring only limited hard disk space and occasional printing, might save money by purchasing fewer resources and sharing them.
Unlike Equipment Communication
Through networking it is also possible to share and send messages between computers having equipment of different brands and using different operating systems like DOS, UNIX, MacOS, etc.
Improve Speed and Accuracy
Sending messages through a network is instantaneous as compared to a common letter, which takes several days to deliver. Computers can send data at very fast speed through satellite or microwave links. Also there are less chances of data being lost in case of networking. Accuracy is also maintained here.
Low Cost.
The cost of ttransferring data between computers connected on a network is lower than by other conventional means of transferring documents.
Instant Availability
Since the time taken in transferring data is quite small, data is available instantlyy at the other end. This feature is useful for communication price fluctuations in foreign exchange and in share/equity trading etc.
Unix Files
Copying Files
cp (copy)
cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2
Use the cp command to copy it to your unixstuff directory. First, cd to your unixstuff directory.
% cd ~/unixstuff
Then at the UNIX prompt, type,
% cp /vol/examples/tutorial/science.txt .
Note: Don't forget the dot . at the end. Remember, in UNIX, the dot means the current directory.
The above command means copy the file science.txt to the current directory, keeping the name the same.
LEARN MORE>>
cp (copy)
cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2
Use the cp command to copy it to your unixstuff directory. First, cd to your unixstuff directory.
% cd ~/unixstuff
Then at the UNIX prompt, type,
% cp /vol/examples/tutorial/science.txt .
Note: Don't forget the dot . at the end. Remember, in UNIX, the dot means the current directory.
The above command means copy the file science.txt to the current directory, keeping the name the same.
LEARN MORE>>
What is UNIX?
UNIX is an operating system which was first developed in the 1960s, and has been under constant development ever since. By operating system, we mean the suite of programs which make the computer work. It is a stable, multi-user, multi-tasking system for servers, desktops and laptops.
UNIX systems also have a graphical user interface (GUI) similar to Microsoft Windows which provides an easy to use environment. However, knowledge of UNIX is required for operations which aren't covered by a graphical program, or for when there is no windows interface available, for example, in a telnet session.
UNIX systems also have a graphical user interface (GUI) similar to Microsoft Windows which provides an easy to use environment. However, knowledge of UNIX is required for operations which aren't covered by a graphical program, or for when there is no windows interface available, for example, in a telnet session.
Input / Output with Files
C++ has support both for input and output with files through the following classes:
ofstream: File class for writing operations (derived from ostream)
ifstream: File class for reading operations (derived from istream)
fstream: File class for both reading and writing operations (derived from iostream)
Open a file
The first operation generally done on an object of one of these classes is to associate it to a real file, that is to say, to open a file. The open file is represented within the program by a stream object (an instantiation of one of these classes) and any input or output performed on this stream object will be applied to the physical file. LEARN MORE>>
I/O Functions
Input and output devices play a key role indata processing. the first phase of processing data is input. Data is accepted in the form of input and output is generated after processing data. C++ language does not facilitate input and output with the help of keywords. Input and output operations are performed with the help of library functions. There are header files which help in performing input/output activities.
Header Files in C++
The list of keywords in C++ does not include functions. However, built in functions are available with C++ library header files. Declarations of function prototypes, classes etc. are provided by header files. The function prototypes are pre-declared before using them in the program. LEARN MORE>>
Header Files in C++
The list of keywords in C++ does not include functions. However, built in functions are available with C++ library header files. Declarations of function prototypes, classes etc. are provided by header files. The function prototypes are pre-declared before using them in the program. LEARN MORE>>
Subscribe to:
Posts (Atom)