Информационный сервер для программистов: Исходники со всего света. Паскальные исходники со всего света
  Powered by Поисковый сервер Яndex: Найдется ВСЁ!
На Главную Исходники Форум Информер Страны мира
   Файловые Утилиты    >>    asc2bin
   
 
 Конвертор ASCII -> BIN  Дмитрий Стефанков 12.07.1994

Convert the ASCII file to the binary file



5k 
 

{-----------------------------------------------------------------------} { MODULE ASC_TO_BIN_CONVERTER } { PURPOSE Convert the ASCII file to the binary file. } { VERSION 1.10 } { DATE 28-Oct-93 } { COMPANY Freelance Software Engineer } { ADDRESS Isakowskogo str, 4-2-30 } { Moscow, 123181 } { USSR } { Tel. 007 (095) 944-6304 } { COPYRIGHT NOTICE Copyright (C) 1987-1993, Dmitry Stefankov } { E-mail: Internet: wizard@npi.msu.su } { RESTRICTED RIGHTS AVAILABLE ONLY FOR FREE DISTRIBUTION, } { NOT FOR COMMERCIAL PURPOSE } { OPERATING SYSTEM MS/PC-DOS Version 3.30 or higher } { COMPILER Turbo Pascal Version 6.0 } { (Borland International Inc.) or compatible } { ARGUMENTS <infile> - input stream } { <outfile> - output stream } { <base> - representation number base } { <type> - type of binary number } { <numcount> - # of extracted numbers/line } { DESCRIPTION 1. Read from input stream } { 2. Convert ASCII to binary representation } { 3. Write converted output stream } {-----------------------------------------------------------------------} { Problem description: translate the ASCII hexadecimal,decimal, and octal dump files to its binary equivalent Data for application: input: file containing any dump like output files from TDUMP, FDUMP and other output: binary file Programming language: Turbo Pascal (Version 6.0+) Instructions to compile: TPC asc2bin.pas , where TPC is a Turbo Pascal command-line compiler Example to run: asc2bin.exe in.asc out.bin $10 2 8 , where <in.asc> -> input filename <out.asc> -> output filename <$10> -> hexadecimal representation base <2> -> quantity = word number <8> -> max. number of detected numbers per each line }