mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-27 00:05:38 +00:00
93748ff346
svn path=/trunk/gtk-sharp/; revision=122562
50 lines
1.9 KiB
XML
50 lines
1.9 KiB
XML
<Type Name="FileUtils" FullName="GLib.FileUtils">
|
|
<TypeSignature Language="C#" Value="public class FileUtils" Maintainer="auto" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>glib-sharp</AssemblyName>
|
|
<AssemblyPublicKey>
|
|
</AssemblyPublicKey>
|
|
</AssemblyInfo>
|
|
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
|
|
<Base>
|
|
<BaseTypeName>System.Object</BaseTypeName>
|
|
</Base>
|
|
<Interfaces />
|
|
<Docs>
|
|
<summary>A simple file IO utility class</summary>
|
|
<remarks>Contains a single static method GetFileContents(string filename) which returns the contents of a text file as a string.</remarks>
|
|
</Docs>
|
|
<Members>
|
|
<Member MemberName="GetFileContents">
|
|
<MemberSignature Language="C#" Value="public static string GetFileContents (string filename);" />
|
|
<MemberType>Method</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters>
|
|
<Parameter Name="filename" Type="System.String" />
|
|
</Parameters>
|
|
<Docs>
|
|
<param name="filename">The file GetFileContents() should retrieve its result from. An object of type <see cref="T:System.String" /></param>
|
|
<summary>Returns a string containing the contents of the text file passed as the 'filename' parameter.</summary>
|
|
<returns>Returns the contents of a text file. An object of type <see cref="T:System.String" /></returns>
|
|
<remarks>
|
|
<example>
|
|
<code lang="C#">
|
|
using System;
|
|
|
|
class Test
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Console.WriteLine(GLib.FileUtils.GetFileContents(args[0]));
|
|
}
|
|
}
|
|
</code>
|
|
</example>
|
|
</remarks>
|
|
</Docs>
|
|
</Member>
|
|
</Members>
|
|
</Type>
|