writing to Bin files

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
MacschedStudent
Junior Coder
Posts: 36
Joined: Fri Oct 12, 2007 5:55 pm
Location: federal way wa
Contact:

writing to Bin files

Post by MacschedStudent » Fri Dec 21, 2007 6:01 am

Hey guys, I'm using Mac Sched ver 7.4.09 - is there a way in this or any version to write from a text file to a bin file. Meaning if I have an empty bin file can I use the ReadLn command to read a text file and then write that line to the bin file...???

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Dec 21, 2007 2:23 pm

Define empty bin file. My understanding is that "bin" file is short for binary file and ALL files are binary.

If you mean that you have a file with a .bin extension and that extension is associated with a particular application installed on your computer. Then you probably need to create the .bin file with a specific structure in order for your application to understand the data contained in the file.

Text files are files that happen to contain only characters that can be typed from your keyboard. If you copy text characters from a text file you can use the Writeln> function to write those characters to ANY file. But doing that does not mean that the application associated with the .bin extension will be able to use the file to which you have written the text.

That said, Writeln> can be used to write any ansi characters to any file.

Hope this makes sense.
Dick

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts