Writing data to files

10 replies [Last post]
untulis
Title: NooBot
Joined: 06/01/2011
Posts:
BotPoints: 3
User offline. Last seen 6 years 50 weeks ago.

I have looked through the InteractiveC and the Kiss-C documentation and I have not been able to find any information about saving data to a file from inside a program.

In other c compilers, I can do a fprintf, but I do not see that in the documentation.Is it possible to print data to a file and if so how?

Thanks

Chuck

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 3 years 3 days ago.

Hi Chuck, welcome to the Botball Community! (Apologies for the late reply, I've been busy.) KISS-C uses GCC with the full standard C library, so fprintf should work fine just as it would with any other C compiler. The KISS-C documentation only lists functionality that KIPR directly offers support for (mainly robotics-specific stuff), but this shouldn't discourage you from using other functionality -- just do so knowing that KIPR won't be able to help you with it.

If you write some code using fprintf and it doesn't work, feel free to post the code here, and hopefully someone will be able to help you.

Good luck!

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 6 years 48 weeks ago.

I've done this several times. But, I don't have my hard drive with me that has the code. I believe you need to mount a usb drive, and then in code open a file on it, write to file, close file.

Scott

All is fair in love and war, and botball is both :)

hellenjos
Title: NooBot
Joined: 07/03/2017
Posts:
BotPoints: 128
User offline. Last seen 3 days 16 hours ago.

I don’t know how to write date to files. Here you shared any details. It would be better if you share the details on the site so that we can understand more about this methods and can give this tips to our friends too. https://bamedsupplies.com/wound-care-products

beryfarnandas
Title: NooBot
Joined: 11/06/2017
Posts:
BotPoints: 2
User offline. Last seen 28 weeks 18 hours ago.

I also need this

Regards,

Doggo Crate

UKEssayPapers
UKEssayPapers's picture
Title: NooBot
Joined: 11/07/2017
Posts:
BotPoints: 2
User offline. Last seen 26 weeks 6 days ago.

Very interesting posts, it is really informative to read these posts Keep posting.

Affordable Essay Writing Services UK | UKEssayPapers

hellenjos
Title: NooBot
Joined: 07/03/2017
Posts:
BotPoints: 128
User offline. Last seen 3 days 16 hours ago.

I don’t know how to save a data to a file from inside a program. Here no other details are shared. I want to know more about these data and saving mechanism. so share the details on the site so that I can learn them well. mens addiction treatment centers

jiya
Title: NooBot
Joined: 06/06/2017
Posts:
BotPoints: 84
User offline. Last seen 5 weeks 14 hours ago.

There are many students who have taken computer ad their main subject. They have to mainly study the programming section in order to gain more knowledge on this subject. Programming is very difficult but there are students who make programming easier. Windows 10 Explorer Not Working

jiya
Title: NooBot
Joined: 06/06/2017
Posts:
BotPoints: 84
User offline. Last seen 5 weeks 14 hours ago.

You did really good work. I really appreciate your new and different post. Please guys keep it up and share with us some unique post in the future…

Jiya Francis
Muscat Higher Education Center

milanjoy
Title: NooBot
Joined: 06/13/2017
Posts:
BotPoints: 84
User offline. Last seen 1 week 4 days ago.

Writing data to file contains very simple procedure and i think most of the students learn its syntax from their schools. Printf are normally used to print the data and scanf is mostly used for reading it from compiler. I am expecting more details about it from here.lodging catalina island

hellenjos
Title: NooBot
Joined: 07/03/2017
Posts:
BotPoints: 128
User offline. Last seen 3 days 16 hours ago.