/    Sign up×
Community /Pin to ProfileBookmark

text file replacement dilema

ok here is the problem ? ….

i have a renamer for files right, so i rename all my pictures
1.jpg, 2.jpg 3.jpg and so on for like 300 pics total

and i do not want to write all that source code so all i did was
copy and paste…..

to put on source file “.jpg”

and im looking for a freeware or any other program out there that can help
me edit txt files so i can add a counter before the .jpg so i can view the files on my site….

Can anybody help?,
i will apreciate any help
Thanks

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@the_treeJun 25.2006 — What sever-side scipting language are you using?
Copy linkTweet thisAlerts:
@jorge556authorJun 25.2006 — HTML basic
Copy linkTweet thisAlerts:
@jorge556authorJun 25.2006 — ok im looking for a replacement tool for text specifically .txt files that can add a counter on certain parts like

find .jpg

finds 100

replace with counter string +.jpg

that way i dont have to write

get source form file 1.jpg file 2 .jpg


and the program does it on its own creating a counter on which all the .jpgs that finds will add the numbers, so i can see them on my site, free site from geocities....

hope is a good explanation for what im trying to do
Copy linkTweet thisAlerts:
@the_treeJun 25.2006 — No sever-side scipting avliable? I guess you could use some Javascript.[colorcode=javascript]<script type="text/javascript">

var num;

num = 1;

while (num < 101){

document.write( '<li><a href="images/' + num + '.jpg">images/' + num + '.jpg</a></li>' );

num++;

}

</script>[/colorcode]I could probably write something much better which wouldn't be realing so horribly on your users browsers, but I haven't done any "real" programming for [i]ages[/i].
Copy linkTweet thisAlerts:
@jorge556authorJun 25.2006 — i will put that on the header, see if it works

thanks for the help
Copy linkTweet thisAlerts:
@jorge556authorJun 25.2006 — on the htref ??

how i have toset it up on the htref ??

thank you !!
Copy linkTweet thisAlerts:
@the_treeJun 25.2006 — O.k., like I said, the Javascript was only because server-side scripting is unavaliable and I'm not a great programmer, but: try running this through your C++ compiler/*
Absolutely Brilliant Counter (ABC), ver. 0.0.0.1 beta
by Paul Carpenter
*/

#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

using namespace std;

int main (){

int num = 1;
string prec,after;

printf("pro-text?n");
getline (cin, prec);

printf("nepi-text?n");
getline (cin, after);

while (num &lt; 101 ){

cout &lt;&lt; prec &lt;&lt; num &lt;&lt; after &lt;&lt; "n";
num++;

<i> </i> }
printf("Copy that text and get out of here.n");
system("PAUSE");
return false; <br/>
}
C++ isn't quite like riding a bike, I did have to look at my notes.
×

Success!

Help @jorge556 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...