|
-
Searching a sequence from a text file entered at command line
Hi there
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
Similar Threads
-
By jase_dukerider in forum C++
Replies: 2
Last Post: 04-14-2005, 07:48 PM
-
By K. Soe in forum VB Classic
Replies: 8
Last Post: 03-08-2003, 06:25 PM
-
By Bharat in forum Database
Replies: 1
Last Post: 03-06-2001, 08:42 AM
-
By Larry Rebich in forum VB Classic
Replies: 2
Last Post: 11-30-2000, 01:17 PM
-
By deborah in forum authorevents.kurata
Replies: 0
Last Post: 04-17-2000, 01:33 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks