![]() |
| | #1 |
| Registered User Join Date: Dec 2005
Posts: 141
| Stream as return function Could anyone please let me know if there are any functions that reads a .txt file and returns a stream? Ak |
| AngKar is offline | |
| | #2 |
| and the Hat of Clumsiness Join Date: Oct 2002
Posts: 1,101
| FileStream Use msdn for this sort of thing next time. http://msdn.microsoft.com/library/de...ClassTopic.asp You can pass this FileStream to either StreamWriter or StreamReader.. then you dont have to deal with an array of bytes to read and write. |
| GanglyLamb is offline | |
| | #3 |
| Registered User Join Date: Dec 2005
Posts: 141
| But I need a Stream as return type. The external fn I'm using is not working when I pass the FileStream object ![]() I need to pass a Stream object. Can I do that? |
| AngKar is offline | |
| | #4 |
| Registered User Join Date: Dec 2005
Posts: 141
| More specifically, I need to put the text into a stream without creating a file. Can I do that in C#? |
| AngKar is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dikumud | maxorator | C++ Programming | 1 | 10-01-2005 06:39 AM |
| c++ linking problem for x11 | kron | Linux Programming | 1 | 11-19-2004 10:18 AM |
| Setting int pointers to one function (not using five functions!) | Marc Sharp | C Programming | 4 | 11-23-2003 07:15 AM |
| opengl program as win API menu item | SAMSAM | Game Programming | 1 | 03-03-2003 07:48 PM |
| Contest Results - May 27, 2002 | ygfperson | A Brief History of Cprogramming.com | 18 | 06-18-2002 01:27 PM |