Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

ring print part of the content of a binary file

see "Testing: fread()" +" FileName: "+ exefilename() +nl +nl
fp = fopen(exefilename(),"rb")
r = fread(fp,800)
for n =1 to len(r)
        if isprint(substr(r, n, 1))
                see substr(r, n, 1)
        else
                see "."
        ok
        ### 80 char per line
        if n % 80 = 0
                see nl
        ok
next
fclose(fp)
Comment

PREVIOUS NEXT
Code Example
Python :: ring load the odbclib.ring library 
Python :: dictionary, accepting similar words solution 
Python :: localizar la fila y columna de un dato pandas 
Python :: found django install path 
Python :: ring get a list of functions names written in the Ring language 
Python :: list duplicates of specific file in folder python 
Python :: python run unix command 
Python :: ring Desktop, WebAssembly and Mobile Using QTreeView and QFileSystemModel 
Python :: python get message Exception 
Python :: ret, img_frame = cap.read() 
Python :: python netcdf double 
Python :: dic to dic arrays must all be same length 
Python :: instaed of: output = "Programming" + "is" + "fun -- use join 
Python :: output of an intermediate layer 
Python :: how to make levels in scratch 
Python :: FinnT730 
Python :: object creation using class constructor 
Python :: downolad fileby python requests 
Python :: ptyhton json respones 
Python :: delete all historical data django simple history 
Python :: https://raw.githubusercontent.com/tim-yao/lighthouse-ci/d32f465bb6cda08ded4ce25c88c43a3103e4940a/.browserslistrc 
Python :: 1038 solution python 
Python :: apa itu duck typing python 
Python :: python second max in numpy array 
Python :: reshaping a image vector/matrix 
Python :: The simplest way to start using doctest in python 
Python :: trigger to print on python 
Python :: opening aws images with pillow 
Python :: multiple ternary operator python 
Python :: python linkedhashmap 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =