View on GitHub

LiTools

Tools

File.WriteFile method (1 of 4)

Write file.

public static bool WriteFile(string filename, byte[] content)
parameter description
filename Name of file.
content data as byte[].

Return Value

true if everthing was ok.

See Also


File.WriteFile method (2 of 4)

Write file.

public static bool WriteFile(FileInfo filename, string content, bool append)
parameter description
filename FileInfo.
content data as string.
append replace or append data if file already exist.

Return Value

true if everthing was ok.

See Also


File.WriteFile method (3 of 4)

Write file.

public static bool WriteFile(string filename, byte[] content, int pos)
parameter description
filename Name of file.
content data as byte[].
pos where in the file shod this be saved.

Return Value

true if everthing was ok.

See Also


File.WriteFile method (4 of 4)

Write file.

public static bool WriteFile(string filename, string content, bool append)
parameter description
filename Name of file.
content data as string.
append replace or append data if file already exist.

Return Value

true if everthing was ok.

See Also