LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview code

Solved!
Go to solution
Can anyone provide me labview code to convert any given file format into text format.
0 Kudos
Message 1 of 12
(3,674 Views)
Solution
Accepted by vamsi v

Hi,

 

You have to be more specific..  What do you really mean by converting "any" file format to text??  

Are you looking for some sort of converter software, such as .pdf to text?  

OR

Do you want to convert some other types of ascii file to simple text?

 

What is it that you want to convert?

 

"Any" is too ambiguous...   Because an executable (.exe) is a file, and so are image files (ie:  .jpg, .png, etc), as well as sound file (.wav).  Do you want to convert those to text as well?

 

Please explain what you are trying to do.

 

R

Message 2 of 12
(3,660 Views)

Hi vamsi v,

do you really mean every file format? Can you be more specific?

If you need it without structure, then you can use the "Read from Text File" function.

 

Mike

0 Kudos
Message 3 of 12
(3,659 Views)

It really depends what's in the "any" file and what you want in the output file. Can you attach anexample?

 

 

(For example, if you have a collection of digital images taken at the zoo, should one of the text files contain the text "This is Bob riding on an Elephant"? :D)

 

 

One possible "universal converter" would format any file into a hex formatted file of twice the size. Is that what you want?

 

Are you looking for UU-encoding, MIME, Base 64, BinHex, etc. or similar??

Message Edited by altenbach on 02-09-2009 09:40 AM
Message 4 of 12
(3,627 Views)

vamsi v wrote:
Can anyone provide me labview code to convert any given file format into text format.

You've already asked this question here, and even marked Mike's reply as a solution.

 

What do you really want?  A flippant answer would be this:

 

 

 

since you never said anything about the "text" being human-readable. 

Message Edited by smercurio_fc on 02-09-2009 11:52 AM
Message 5 of 12
(3,616 Views)

Hi,

    Actually I want to convert a .doc file to .txt file and back to .doc file. can you give me code for that.

 

i.e. if you have a .doc file and you want to convert it to .txt format and back to .doc format..

 

Thanks

 

 vamsi

0 Kudos
Message 6 of 12
(3,568 Views)

Hi Vamsi,

 

Just to be clear..  Do you mean a MS Word document (.doc)?

 

If so, then you have to use ActiveX.  Do a search on Word doc ActiveX and look at some of the code examples that were posted.  You'll have to extract the unformatted text information (basically the text you are interested in). 

 

R

Message 7 of 12
(3,541 Views)

Actually, you have another thread on this topic.  Please keep the discussion to one single thread.

Someone posted an example for you in your other thread here

Message 8 of 12
(3,538 Views)

JoeLabView wrote:

 

Someone posted an example for you in your other thread here


It is me [Partha], Joe... ! Smiley Happy

 

After some really long time, today I spent my time hooked to the forums.

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 9 of 12
(3,529 Views)

parthabe wrote:

After some really long time, today I spent my time hooked to the forums.


Really, after a long time, am seeing you LabVIEW tigers fighting to help people.

 

Ben, JLV, MikeS81, Altenbach, Smercurio, Dennis, Tst, Ravens Fan, Mikeporter....... the list continues.....

Message Edited by mathan on 02-12-2009 08:11 AM
0 Kudos
Message 10 of 12
(3,472 Views)