Jump to content

Recommended Posts

Posted

hello, i want to read some text from a text file and use it.

text file

Title = My Program Name
Description = New Tool
Version = 3.0.6.1
Files = @DesktopDir

now how to read this text file and use? for example in a MsgBox?

MsgBox(0, "My Program Name", "New Tool" & @CRLF & "3.0.6.1" & @CRLF & @DesktopDir)

i don't know how to do it using FileRead(), reading the help file did not help.

Unresolved topics:1- Please help me in Editing or replacing a page in FireFox and IE.Please have a look at them.
Posted (edited)

hello, i want to read some text from a text file and use it.

text file

Title = My Program Name
Description = New Tool
Version = 3.0.6.1
Files = @DesktopDir

now how to read this text file and use? for example in a MsgBox?

MsgBox(0, "My Program Name", "New Tool" & @CRLF & "3.0.6.1" & @CRLF & @DesktopDir)

i don't know how to do it using FileRead(), reading the help file did not help.

Script

$1=IniRead(@DesktopDir & "\File.txt","Dir","Title","")
$2=IniRead(@DesktopDir & "\File.txt","Dir","Description","")
$3=IniRead(@DesktopDir & "\File.txt","Dir","Version ","")
$4=IniRead(@DesktopDir & "\File.txt","Dir","Files ","")
MsgBox(0,"",$1& "," &$2& @CRLF &$3& @CRLF &$4)

File.txt

[Dir]
Title = My Program Name
Description = New Tool
Version = 3.0.6.1
Files = @DesktopDir

Hope this will help you

Edited by Kyme

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...