469,090 Members | 1,096 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,090 developers. It's quick & easy.

I/O

Is there any way of opening a file for input altering its contents and then
saving it with the same name
but with a date attached eg myfile_23-03-2005 , myfile_24-03-2005 e.t.c.

I have tried appending Date to the end of the filename when saving but that
doesn't work.
Thanks

Kevin
Jul 17 '05 #1
1 2399
Probably the easiest way would be something like:
Open strFile_1 for input as 1
Open strFile_2 for output as 2

Do until EOF(1)
'manipulate contents here if needed
'write contents to strFile_2
loop
Close

Hope this helps.

David Hodgkins, MCSD, MCDBA, MCSE
JSTAR Software Solutions
4402 Sweet Cherry Ln.
Kalamazoo, MI 49004
www.jstarsoftware.com - Home of AutoCompact for Access Databases
269-382-2931
"Kevin Robinson" <k.**********@btinternet.com> wrote in message
news:d2**********@sparta.btinternet.com...
Is there any way of opening a file for input altering its contents and then saving it with the same name
but with a date attached eg myfile_23-03-2005 , myfile_24-03-2005 e.t.c.

I have tried appending Date to the end of the filename when saving but that doesn't work.
Thanks

Kevin

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.