cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Read input from pdf or text note

YA_10963798
14-Alexandrite

Read input from pdf or text note

I need to input data from Notepad . Can mathcad do that ? using ReadText function or there is another way to do it ? 

This is the data I need to input , I couldn't attach the note file because the file type is not supported , so I attached as pdf

YA_10963798_0-1725553816928.png

YA_10963798_1-1725557284578.png

 

 

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:YA_10963798)

Yes, Prime can do that.

 

Look up the function READTEXT in the help of Prime.

Here's an example, based off the pdf file (and starting with the line containing #EOH= ) :

LucMeekes_0-1725558552631.png

Results in:

LucMeekes_1-1725558620214.png

etc.

 

Success!
Luc

 

View solution in original post

3 REPLIES 3
LucMeekes
23-Emerald III
(To:YA_10963798)

Yes, Prime can do that.

 

Look up the function READTEXT in the help of Prime.

Here's an example, based off the pdf file (and starting with the line containing #EOH= ) :

LucMeekes_0-1725558552631.png

Results in:

LucMeekes_1-1725558620214.png

etc.

 

Success!
Luc

 

YA_10963798
14-Alexandrite
(To:LucMeekes)

what does '' delimited'' do?

 

And  should I write my file name instead of '' File'' ?

 

Thanks 

As Luc said, look up READTEXT in Help: https://support.ptc.com/help/mathcad/r10.0/en/#page/PTC_Mathcad_Help/text_files.html

 

You'd write your file name in quotes.

Delimited says how the data is structured in the file (how Mathcad is supposed to know when a new column begins and the old one ends). In the case of his example, a space (" ") is the delimiter.

I manage the Creo and PTC Mathcad YouTube channels for PTC, as well as all PTC Mathcad marketing in general.
Announcements

Top Tags