sequencial and random files

Lymfatik-Phlame
04-13-2001, 01:07 PM
this is my proglem:
how do i create a file in the directory that my program is in without knowing the actual directory?

for example if i compile my program and sedn it to someone when they run it i want the program to create this file in the same directory as the program is in... i know how to create files etc... but i need to know this.. THANX in advance

=LP= images/icons/crazy.gif

PWNettle
04-13-2001, 02:16 PM
Try using App.Path, for example:
<PRE> strOutputFilename = App.Path & "\output.txt"</PRE>It'll give you your project folder in development mode (if you've saved your project) or the folder our EXE is in when you've compiled it.

Paul

Lymfatik-Phlame
04-13-2001, 04:28 PM
thanx!

=LP=images/icons/crazy.gif

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum