<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_file_open_path</id>
	<title>Truxton file open path - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_file_open_path"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_file_open_path&amp;action=history"/>
	<updated>2026-09-09T16:05:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_file_open_path&amp;diff=10733&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;This retrieves a file from Truxton by its path.  =Syntax= &lt;source lang=&quot;C&quot;&gt; uint64_t truxton_file_open_path( uint64_t truxton_handle, char const * media_id, char const * file_...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_file_open_path&amp;diff=10733&amp;oldid=prev"/>
		<updated>2026-02-06T09:42:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This retrieves a file from Truxton by its path.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; uint64_t truxton_file_open_path( uint64_t truxton_handle, char const * media_id, char const * file_...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This retrieves a file from Truxton by its path.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
uint64_t truxton_file_open_path( uint64_t truxton_handle, char const * media_id, char const * file_path );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Parameters=&lt;br /&gt;
==&amp;lt;code&amp;gt;truxton_handle&amp;lt;/code&amp;gt;==&lt;br /&gt;
The handle created by the [[truxton_create]] call.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;media_id&amp;lt;/code&amp;gt;==&lt;br /&gt;
The string representation of the globally unique identifier of the media containing the desired file.&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;code&amp;gt;file_path&amp;lt;/code&amp;gt;==&lt;br /&gt;
The path to the desired file.&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
A handle to a read-only file in Truxton.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;6&amp;quot;&amp;gt;&lt;br /&gt;
int check_it( uint64_t truxton )&lt;br /&gt;
{&lt;br /&gt;
   char const * full_path = &amp;quot;Root - 000201011\Media\Folder\Setup.exe\1.CAB\Lastrec.log&amp;quot;;&lt;br /&gt;
   char const * media_id = &amp;quot;34c728cf-69bf-6a8a-197d-4b47492c932c&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
   uint64_t file = truxton_file_open_path( truxton, media_id, full_path );&lt;br /&gt;
&lt;br /&gt;
   if ( file == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      return( 0 );&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   truxton_file_close( file );&lt;br /&gt;
   truxton_file_free( file );&lt;br /&gt;
&lt;br /&gt;
   return( 1 )&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>