LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I open/view a file with labview, The file is not a .txt, or a bin file

I need to open a file , this file is not a  .txt or a bin file. I already use the open/create/ replace file and doesn't do anything.....
0 Kudos
Message 1 of 3
(2,782 Views)
What kind of file is it? What program created it?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,779 Views)

Opening a file does not do anything with the contents of the file, It just reserves the file for use and gives you a file refnum so you can use lowlevelfile I/O on it with the rest of the code. Maybe you should follow it with a read operation perhaps? 😉

Or you could just read the entire file as one long string, then look at it to see if you can discern a pattern.

The file extension (.bin, .txt) does not necessarliy mean anything useful. You can name a binary file abc.txt and a text file DEF.bin. While you're at it, you could even name the file aaa.zzz or leave out the extension entirely.

In windows, the file extension is used to define default applications to be used to open the file if you double-click it. So often, the file extension can give some clue. It does not mean that changing the extension miraculously converts a file onto something else. Take a text file and rename it to an .avi extension. Now windows will probably try to use media player to try to open it and will most likely fail. 😉

If the file is not too big, attach it here and we'll give it a try.

 

Message Edited by altenbach on 06-11-2007 09:31 PM

0 Kudos
Message 3 of 3
(2,768 Views)