|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Read vars from a text file
Hi,
I need to read an ip-adress from a text file. The line in the text-file is formatted as: ... ip:192.168.0.1 //Comment ... I know how to read the file, but how do i only read the ip-adress and not the rest of the line. And how do i validate that it has the proper format for an ip-adress? Thanks // Martin |
|
#2
|
|||
|
|||
|
What version of the jdk are you using? (Hint: it's a whole boat-load easier if you can use 1.4)
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Read vars from a text file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|