3 Reusable Code Snippet Topics

Remove Filter
Member Avatar for
Member Avatar for thines01

Here are two examples of opening read streams to files on an FTP server. One example uses the FtpWebRequest method. One example uses the WebClient method. Here is a method of testing those functions: [CODE] using System; using System.Diagnostics; using System.IO; using System.Net; namespace UseFtpStreamExample { using FtpReadStreams; class Program …

0
400
Member Avatar for packetpirate

This is for the numerous people I see constantly asking how to "pause" the console after their code runs. The explanation for how the code works is within the snippet in comments. Basically, the "cin.clear();" function will clear the input stream, getting rid of any newline characters that would have …

Member Avatar for MosaicFuneral
-1
2K
Member Avatar for TrustyTony

This handy function turns file into stream of words stripped of punctuation, whitespace and digits, but does not split for example we'd to two words. If you want that you can further process yielded words or change the definition.

Member Avatar for griswolf
3
2K

The End.