File reading

i want to have an understanding on the file reading concept.suppose u dont know the contents of the file and u have read one line in the file. From this line, I would like to know what primitive types it has. thank u
[237 byte] By [marsudhira] at [2007-10-2 5:50:13]
# 1
> suppose u dont know the contents of the file and u> have read one line in the file. From this line, I> would like to know what primitive types it has. It will have a String.
aniseeda at 2007-7-16 1:59:36 > top of Java-index,Java Essentials,Java Programming...
# 2
Ya i know that wht ever we do in file reading is going to string. the question, suppose the string may be a combination on integers as well. i would like to search for the integers in the string.
marsudhira at 2007-7-16 1:59:36 > top of Java-index,Java Essentials,Java Programming...
# 3

> Ya i know that wht ever we do in file reading is

> going to string. the question, suppose the string may

> be a combination on integers as well. i would like to

> search for the integers in the string.

Yes you could do that by looping over the String character by character and checking if the charcter is a digit or not. This can also be done using the java regex package.

aniseeda at 2007-7-16 1:59:36 > top of Java-index,Java Essentials,Java Programming...