View unanswered posts | View active topics It is currently Wed Sep 17, 2014 4:26 am






Reply to topic  [ 3 posts ] 
no path info in printed c code 
Author Message
Rookie

Joined: Mon Sep 24, 2012 3:03 pm
Posts: 14
Post 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


Sat Dec 01, 2012 9:20 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 575
Post 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.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Mon Dec 03, 2012 1:32 pm
Profile
Rookie

Joined: Mon Sep 24, 2012 3:03 pm
Posts: 14
Post 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


Thu Dec 06, 2012 3:46 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.