Rick Posted November 25, 2013 Share Posted November 25, 2013 std:string Stream::ReadAll() would be convenient. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 25, 2013 Share Posted November 25, 2013 What would it do? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted November 25, 2013 Author Share Posted November 25, 2013 Read the entire file to a string. Coming from the .NET work and File.ReadAllText() is handy to just get the entire file contents into a string to play around with in 1 function call. Quote Link to comment Share on other sites More sharing options...
Josh Posted November 25, 2013 Share Posted November 25, 2013 Try FileSystem::LoadString(). Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted November 25, 2013 Author Share Posted November 25, 2013 What does that do? It's not documented: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/filesystem/ Quote Link to comment Share on other sites More sharing options...
Josh Posted November 25, 2013 Share Posted November 25, 2013 It loads a file and returns the entire contents in a string. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted November 25, 2013 Author Share Posted November 25, 2013 Can we get that documented because that's nice to know Quote Link to comment Share on other sites More sharing options...
gamecreator Posted November 25, 2013 Share Posted November 25, 2013 Or maybe it's undocumented because it's unofficial? Quote Link to comment Share on other sites More sharing options...
Josh Posted November 25, 2013 Share Posted November 25, 2013 If it's undocumented by definition it's unofficial. I think he is asking for it to be official. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
ZioRed Posted November 27, 2013 Share Posted November 27, 2013 Is there any other useful functions in FileSystem that we should know? For example I remember that we could use your FS to load content from web (e.g. response from a webservice), is that still available in LE3 under the hood? It would be really great to have since I could ensure platform-independent feature to my Combu for LE/C++ (it's currently using libcurl to access webservices, I don't know if it works on iOS [i suppose yes here, since I have the dylib on Xcode] and Android) Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
Josh Posted November 27, 2013 Share Posted November 27, 2013 HTTP streams are not supported in 3.x. It's actually a feature that was built into BlitzMax. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
ESP Posted November 27, 2013 Share Posted November 27, 2013 How hard would it be to add to 3.1? Robin Quote Programmer , Intel Quad core, NVIDIA GeForce GT 220, Windows 7 Pro, Galaxy Tab 2 ( 7" and 10"), LE2,LE3,3DWS Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.