How to Read some items From Text File ?

jothis

Active Member
Licensed User
Hi
I Have A Text File This is The Content

Version=2.91.2
CmdLine="/enum /o=Devices.txt
Source1=HP PSC 1400 TWAIN
Source2=WIA-HP PSC 1400

DefaultSource=HP PSC 1400 TWAIN
State=3
Exit=0


I Want To Read The Word "HP PSC 1400 TWAIN" and "WIA-HP PSC 1400" To A list Box.
Is It Possible?
Please Help me
jothis
 

jothis

Active Member
Licensed User
Thankyou For Helping me Zenerdiode,

Ya Like This.
But When I Connect More Than One Scanner My Text File Generate more than 2 sources Like This:-

Source1=HP PSC 1400 TWAIN
Source2=WIA-HP PSC 1400
Source3=HP PSC 1402 TWAIN
Source4=WIA-HP PSC 1402


How To Know How many Sources are in the text file?
Please Help me?
:BangHead::sign0085:
 

specci48

Well-Known Member
Licensed User
Longtime User
Hello jothis,

a slightly changed version of Zenerdiode's code ist attached which reads all available sorurces into the listbox.


specci48
 

Attachments

  • ReadText2.zip
    951 bytes · Views: 184

wolfgang

Member
Licensed User
Longtime User
Hi,
another version.

Specci was a little bit faster, but it's not the same!
 

Attachments

  • readtest_wolf.sbp
    807 bytes · Views: 184
Top