Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...One of the best run forums I have used in years! ...I like the way the site is organized and your no tolerance of flames..."

Geography

Where in the world do Tek-Tips members come from?
nfl02 (TechnicalUser)
30 Oct 00 12:48
Any ideas on how I can get ASPECT to retrieve a field from a CSV file? I want to automate my PBX programming by having the script refer to an external file for the responses to certain prompts returned by the PBX i.e. phone number, name etc.
Wills7577 (Programmer)
6 Nov 00 7:26
The only thing that I have ever been able to get it to work is to save from excell as *.CSV, then open that file in a plain text editor (such as notepad) and save it again as *.TXT. Once it is a *.TXT, it's pretty simple to get aspect to recognize it. Here is part of a script that gets data from an external, comma seprated, text file:

...
fopen 3 sourcefile Read
fgets 3 datastr
strtok indexnumber datastr "," 1
strtok hospitalnum datastr "," 1
strtok accountnum datastr "," 1
...

this will read the current line of the source file, and break it into three seprate strings.

I hope that this helps,
William Sheehan


Guest (Visitor)
14 Dec 00 21:26
I am trying to get aspect to get text from a .csv(saved as .txt)file.  I would like the script to get on line of values (4 values in total) and return to them to procomm screen.  I am brand new to aspect scripting and would very much appreciate any help.

Thankx

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close