aspose file tools*
The moose likes Beginning Java and the fly likes Reading from a file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reading from a file ?" Watch "Reading from a file ?" New topic
Author

Reading from a file ?

Remaan Rem
Ranch Hand

Joined: Mar 04, 2010
Posts: 36

Hello Every one ;)

I was wondering about a way to solve this code - or in other words make it work !!

Basically the idea behind it : read a file and process comands based on that file.

The main issue with this code is I can't really figure out why the first if statement is not executed ?




David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Using upper-case names for variables is really confusing.

You're not really giving us enough information to go on, like... what's in the file? Are you talking about line 17?
Remaan Rem
Ranch Hand

Joined: Mar 04, 2010
Posts: 36
I should consider this advice with coming programing projects.
For this one :
In side the file: there are 5 lines of different commands
We want to read them and call the commands based on what we found in the file.

Using the Token and Tokenizer

I wish that helps

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Me too, but it doesn't: if you want to debug why your code isn't working we need to know what data you're feeding the program.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading from a file ?
 
Similar Threads
I am supposed to call two service classes from one client(main) class?
how do I get the next line in the file and tokenize it
how to read from a file ?
Giving runtime error
I am supposed to call two service classes from one client(main) class?