Rick Posted November 25, 2013 Posted November 25, 2013 std:string Stream::ReadAll() would be convenient. Quote
Josh Posted November 25, 2013 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.
Rick Posted November 25, 2013 Author 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
Josh Posted November 25, 2013 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.
Rick Posted November 25, 2013 Author Posted November 25, 2013 What does that do? It's not documented: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/filesystem/ Quote
Josh Posted November 25, 2013 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.
Rick Posted November 25, 2013 Author Posted November 25, 2013 Can we get that documented because that's nice to know Quote
gamecreator Posted November 25, 2013 Posted November 25, 2013 Or maybe it's undocumented because it's unofficial? Quote
Josh Posted November 25, 2013 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.
ZioRed Posted November 27, 2013 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
Josh Posted November 27, 2013 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.
ESP Posted November 27, 2013 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
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.