![]() |
Reference text file in C++
I know that it is possible to reference a text file in C++ so that you are able to change variables without having to rebuild every time you want to change a constant. Does anyone know how to do that, and if so could you tell me how?
Thanks, E Dawg |
Re: Reference text file in C++
Check out RAWCConstants.
It was developed by other FRC teams and we stole shamelessly. It's been super useful. Edit: it was pointed out to me that I was violating the license agreement. I've removed the link to our repo. I'm not sue the official source for the tool. I wasn't part of our original implementation. |
Re: Reference text file in C++
How much do you understand about file i/o in general?
|
Re: Reference text file in C++
|
Re: Reference text file in C++
Quote:
|
Re: Reference text file in C++
A simple way to do this in C++
Code:
#include <fstream>Code:
test 1 |
| All times are GMT -5. The time now is 02:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi