ROBOTC.net forums
http://www.robotc.net/forums/

no path info in printed c code
http://www.robotc.net/forums/viewtopic.php?f=1&t=5200
Page 1 of 1

Author:  blainegray [ Sat Dec 01, 2012 9:20 pm ]
Post subject:  no path info in printed c code

Greetings
When I print the code I get a long path name at the top of the printout. How do I just get the filename? I would not mind the path so much but it does not wrap around - it goes off the page.
Thanks
Blaine

Author:  JohnWatson [ Mon Dec 03, 2012 1:32 pm ]
Post subject:  Re: no path info in printed c code

There is unfortunately no way to remove or change the file name extension at the top of the printed code; however, the easiest way to mark a program with its name is to add a comment (either using // or /* */) with the file name inside of it:

Code:
//This is program A
or
/* This is program A */


You'll still have the full file extension at the top, but you will also have the program's file name directly underneath it.

Author:  blainegray [ Thu Dec 06, 2012 3:46 pm ]
Post subject:  Re: no path info in printed c code

Hello John,
thanks for the reply. Is there a way to import just the filename as a variable so I get the current name?
Thanks,
Blaine

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/