Searching a sequence from a text file entered at command line
I am a Java newbie so if you want to ignore me with reviled distaste that is ok
I am just looking for some advice:
I want to create a program that checks a .txt file entered at the first line by the user (command line?) against a particular string of letters (sequence?).
I have decided to separate my program into a few stages:
1. Welcome and ask for File to be searched
If not in same directory, program terminates asking to check whether file is in same directory.
If in same directory, move onto stage 2
2. Read file to make sure that there are just letters (i.e no numbers)
If there are numbers, program terminates asking for numbers to be removed from .txt file.
If there are no numbers, program continues to stage 3
3. Read file to make sure there are no spaces. If spaces exist then join them.
4. If letters are in small then capitalise them.
5. If I wanted to find a word all the words beginning with a and ending with z in the text then I coul also use a*z
I will post updates to let you know how I am doing
If anyone can help. Thanks
By jase_dukerider in forum C++
Last Post: 04-14-2005, 07:48 PM
By K. Soe in forum VB Classic
Last Post: 03-08-2003, 06:25 PM
By Bharat in forum Database
Last Post: 03-06-2001, 08:42 AM
By Larry Rebich in forum VB Classic
Last Post: 11-30-2000, 01:17 PM
By deborah in forum authorevents.kurata
Last Post: 04-17-2000, 01:33 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL