Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Save Text To File

Posted on December 14, 2013October 26, 2015 By David Kittell
Public Function SaveTextToFile(ByVal strData As String, ByVal FullPath As String, Optional ByVal ErrInfo As String = "") As Boolean
        Dim Contents As String = ""
        Dim bAns As Boolean = False
        Dim objReader As StreamWriter
        Try
            objReader = New StreamWriter(FullPath)
            objReader.Write(strData)
            objReader.Close()
            bAns = True
        Catch Ex As Exception
            ErrInfo = Ex.Message

        End Try
        Return bAns
    End Function
Originally Posted on December 14, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code VB

Post navigation

Previous post
Next post

Related Posts

Remove duplicates in a string array

Posted on September 1, 2015October 26, 2015

//error_reporting(E_ALL); //ini_set(‘display_errors’, 1); echo "<p>Original:<br/>".$_GET[’input’]."</p>"; $pieces = explode(",", $_GET[’input’]); $result = array_unique($pieces); echo "<p>Updated:<br/>"; foreach($result as $print) { echo "$print,"; } echo "</p>"; Originally Posted on September 1, 2015Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code…

Read More

XML Site Map

Posted on October 17, 2013October 26, 2015

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="generateXML.aspx.vb" Inherits="Examples_generateXML" %> <%@ Register Assembly="Ektron.Cms.Controls" Namespace="Ektron.Cms.Controls" TagPrefix="CMS" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Generate Sitemap Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:Button runat="server" ID="btnGenerate" Text="Click to Generate Sitemap" OnClientClick="displayWait()" /> <br /> <br /> <cms:login runat="server" id="login1"…

Read More

Red Hat / CentOS / Fedora – Apache – Prometheus Metrics

Posted on April 1, 2021August 17, 2024

Guides followed: https://machineperson.github.io/monitoring/2016/01/04/exporting-apache-metrics-to-prometheus.html https://www.shellhacks.com/prometheus-apache-exporter-install-config-ubuntu-centos/ # Guides followed: # https://machineperson.github.io/monitoring/2016/01/04/exporting-apache-metrics-to-prometheus.html # https://www.shellhacks.com/prometheus-apache-exporter-install-config-ubuntu-centos/ # Install the needed packages sudo yum install golang git httpd # Create the needed environment for GOLang mkdir ~/go export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin # Refresh your bash source ~/.bashrc # Create apache_exporter user sudo useradd apache_exporter -s /sbin/nologin…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes