Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to make a file with python using nikkiepy

I’ve been stuck on C++ for a bit, so I decided to continue my python classes (In which I’m currently working with the Nikkiepy library) and I’m trying to figure out how to make a file. This is my current code:

import nikkiepy.files as npyf

npyf.mkfile("coakey", "./data", ".cde")

for some reason it keeps asking for a folder

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

You’re using "Coakey" as the folder, you should instead do

import nikkiepy.files as npyf

npyf.mkfile(path="./", name="coakey", extension="cde")

Also, leave the "." out of the extension, because that gets added automatically

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading