🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Borneq Tue, 03 May 2016 09:30
Czytanie z pliku tekstowego ale w C++
#308510
Author: Borneq
Date: Tue, 03 May 2016 09:30
8 lines
1061 bytes
Dotychczas używałem
	FILE *fp;
	fp = fopen(pchar, "r");
	fread(buf, size1, size2, fp);
Ale chcę:
- jako parametr nazwę pliku string, chętnie Unicode
- nie czytać do bufora ale do stringa, może być bez unicode albo z 
kodowaniem UTF8
Re: Czytanie z pliku tekstowego ale w C++
#308511
Author: M.M.
Date: Tue, 03 May 2016 09:33
13 lines
1528 bytes
On Tuesday, May 3, 2016 at 11:30:21 AM UTC+2, Borneq wrote:
> Dotychczas używałem
> 	FILE *fp;
> 	fp = fopen(pchar, "r");
> 	fread(buf, size1, size2, fp);
> Ale chcę:
> - jako parametr nazwę pliku string, chętnie Unicode
> - nie czytać do bufora ale do stringa, może być bez unicode albo z 
> kodowaniem UTF8

http://www.cplusplus.com/doc/tutorial/files/

Pozdrawiam
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads