Indigo Rose Software
  #1  
Old 10-06-2004
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Why doesn't the file path work?

Have you checked and checked again the file path to a file you are referencing in your project and yet still your project is not seeing the file? Well, below you will find an example of an improperly coded file path and the the correct way.

Here is the wrong syntax with regards to the file path between the double quotes:

Code:
strData = TextFile.ReadToString("C:\text.txt"); -- Wrong!

Paragraph.SetText("Paragraph1", strData);
Here is the correct syntax with regards to the file path between the double quotes:

Code:
strData = TextFile.ReadToString("C:\\text.txt"); -- Correct!

Paragraph.SetText("Paragraph1", strData);
Note: the double back slashes in the path. The first back slash escapes the second back slash. In another words, with out the first back slash AutoPlay Media Studio 5 would not see the other back slash and thus the file path would be incorrectly referenced.
__________________
Intrigued
www.amsuser.com

Last edited by Intrigued; 10-06-2004 at 11:21 PM.
Reply With Quote
  #2  
Old 10-06-2004
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
Nice one!

Corey Milner
Creative Director, Indigo Rose Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Create a Project Template Support AutoPlay Media Studio 4.0 Examples 0 10-28-2002 02:49 PM
HOWTO: "Hide" Externally Referenced Files Support AutoPlay Media Studio 4.0 Examples 0 10-23-2002 04:19 PM
Path problems in NT when executing file with spaces in path tomarppe Setup Factory 6.0 6 03-21-2002 03:01 PM
Can search allow manual browse even if file is found? RichardShaw Setup Factory 5.0 2 08-28-2000 07:08 PM
Install only into one of several directories with specific existing file? RichardShaw Setup Factory 5.0 0 08-17-2000 03:29 PM


All times are GMT -6. The time now is 05:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software