Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21256

Unformatted data and single type variable

$
0
0
Hi all,
I have this problem, I have some numeric data to write in a file. I receive this data as a string from a device and then, I use the statements

Open path For Binary As #nFile
Put #nFile, , data
Close #nFile

to save these data.

Now, I'd rather to convert this string (19 bytes) having numeric data, in a single type variable (just 4 bytes).
What I figured out is that I can't because when I do it, in the text file I have some ASCII characters and I don't even know if there is some criteria in these characters.

Well, my question is, how can I write in a file, using the unformatted (binary) data and in the same time the single type variable?

Thanks to all in advance for your time.

Viewing all articles
Browse latest Browse all 21256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>