Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input file

Status
Not open for further replies.

samsung3500

Technical User
Joined
Jun 14, 2001
Messages
1
Location
US
Hello,
I am in need of some aspect help. I am trying to create a script that will log into my voicemail system and assist in creating mailbox numbers. what I've done so far.

1) I have created a script that will get me to the point in the system of entering the name and Mailbox number.

Need: Is there a way using Aspect scripts to take input from a flat text file with 2 columns Name & mailbox number.

Note: I imaging the 'Need' process would have to be in a loop to go to the next record etc.

2) After that is completed i have already made it so that the file will exit.

Any help would be most appreciative.

Regards
 
you can use a comma delimited text file such as ...

MailboxName,MailboxNumber
MailboxName,MailboxNumber
MailboxName,MailboxNumber
MailboxName,MailboxNumber....

In your script use the "fopen" command to access the file...
Such as:

fopen 1 SourceFile.txt READ ;opens your file
While not feof 1
fgets 1 strSourceString ;Gets the next line
strtok strMailBoxName strSourceString "," 1
;(Above) Breaks out the Mailbox Name
strtok strMailBoxNumber strSourceString "," 1
;(Above) Breaks out the Mail Box Number

;... (the rest of your code)
End While

Hope this Helps,
William R. Sheehan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top