Creating .txt file

J

jdblackford

Hello,

I was wondering if it was possible to create simple program that will
create .txt (or .html) files based on information provided via
prompts.

For instance, if I wanted to create a file called 01.20.07.html based
off of a specific date (01 is MM, 20 is DD, 07 is YY) that looked like
this:

<html>
<body>
<table>
<tr><td><img src="http://www.mywebsite.com/01.20.07/1.JPG">
<td><img src="http://www.mywebsite.com/01.20.07/2.JPG">
<td><img src="http://www.mywebsite.com/01.20.07/3.JPG">
</tr>
<tr><td><img src="http://www.mywebsite.com/01.20.07/4.JPG">
<td><img src="http://www.mywebsite.com/01.20.07/5.JPG">
<td><img src="http://www.mywebsite.com/01.20.07/6.JPG">
</tr>
</body>
</html>

I would like to be able to enter the following information when
prompted by the program:

MM
DD
YY
Number of images

If possible, I would like to have the code know how many table rows to
create (in intervals of 3) based on the number of images.

Is this something someone here can assist with?
 
F

faceman28208

Hello,

I was wondering if it was possible to create simple program that will
create .txt (or .html) files based on information provided via
prompts.

All of what you describe is possible/not difficult. However, it will
be difficult to get someone in this group to write such an application
for you.
 
J

jdblackford

All of what you describe is possible/not difficult. However, it will
be difficult to get someone in this group to write such an application
for you.

Fair enough. Is there somewhere I can go to get this done? I am not
trying to clutter up the group with requests that aren't supposed to
be here. Any help you can provide with guiding me in the right
direction is appreciated! I have a family website with pics of my kid
(soon to be 2 kids) and need a quick easy way to do pic updates for
family who don't live near me.

Thanks
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

Fair enough. Is there somewhere I can go to get this done? I am not
trying to clutter up the group with requests that aren't supposed to
be here. Any help you can provide with guiding me in the right
direction is appreciated! I have a family website with pics of my kid
(soon to be 2 kids) and need a quick easy way to do pic updates for
family who don't live near me.

There are a number of ways to do that, the simplest is to download that
does this already, they can usually generate thumbnails and such as well.

If you still want to write a program it might be easier using a
scripting language like perl since it's lots of string handling
involved. But if you really want to do it in C++ then read up on strings
and iostreams, you might also have some uses for the following from the
FAQ: http://www.parashift.com/c++-faq-lite/misc-technical-issues.html,
the first one on the page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top