Skip to content

"Java program to read a file, count words & lines, and write results to another file (Codveda Internship Project)"

Notifications You must be signed in to change notification settings

lalitsingh712/FileReaderWriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

File Handling in Java – Word & Line Counter

A Java console application built as part of my internship at Codveda Technologies. This project demonstrates how to read data from a file, process it (word & line count), and write results to another file using Java I/O streams.

πŸš€ Features

Reads data from a text file (input.txt)

Counts total lines and words

Writes the processed result into another file (output.txt)

Handles file-related exceptions (FileNotFoundException, IOException)

Clean and efficient implementation using BufferedReader & BufferedWriter

πŸ› οΈ Technologies Used

Java (JDK 8+)

File Handling (I/O Streams)

Exception Handling

πŸ“‚ Project Structure

FileReadWriteExample.java # Main program file input.txt # Sample input file output.txt # Output file generated by the program

About

"Java program to read a file, count words & lines, and write results to another file (Codveda Internship Project)"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages