Skip to content

zvolsky/vfp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vfp

Few python utils, f.e. file utils. Syntax of some of them is similar to visual foxpro.

.filetostr(filename)                        # read the file (in its coding)
.filelines(filename)                        # get lines of file as list
.strtofile(content, filename, additive)     # write str or encode&write unicode
.strtoutf8file(content, filename, additive) # write unicode or decode&write str
                                            #       into utf8 file
.suredir(path)                              # create dir if not present

see source code for more parameters and parameters details

how to instal

copy vfp.py somewhere into PYTHONPATH

import vfp
content = vfp.filetostr('/dirname/filename.txt')

About

few python utils, f.e. file utils

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages