Writing data to files

5 replies [Last post]
untulis
Title: NooBot
Joined: 06/01/2011
Posts:
BotPoints: 3
User offline. Last seen 6 years 27 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 2 years 30 weeks 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 25 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: 92
User offline. Last seen 1 day 9 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 5 weeks 4 days 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 4 weeks 3 days ago.

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

Affordable Essay Writing Services UK | UKEssayPapers