Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

How can I read a file's creation date time ? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Flash99
Posted : Thursday, January 21, 2010 12:12:17 AM
Platinum Customer Platinum Customer

Joined: 7/16/2009
Posts: 411
I plan to upload a file in SF5 using the RealCodeFileReader and I woiuld like to check the file creation date/time before I upload the file.
I cannot use System.IO.File.GetCreationTime(...) because IO operations are not allowed.
Do you have any suggestion ?
Thank you
Kuf
Posted : Thursday, January 21, 2010 9:59:29 AM


Administration

Joined: 9/18/2004
Posts: 3,522
There is currently no way to read the file date because of the IO restrictions. We want to drop the IO restrictions shortly after the release of version 5.

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
Flash99
Posted : Thursday, January 21, 2010 12:04:21 PM
Platinum Customer Platinum Customer

Joined: 7/16/2009
Posts: 411
Ok. Thanks
machangman
Posted : Tuesday, September 14, 2010 10:14:08 PM
Registered User
Joined: 8/12/2006
Posts: 7
QUOTE (Kuf)
There is currently no way to read the file date because of the IO restrictions. We want to drop the IO restrictions shortly after the release of version 5.


So when might we be able to output from RealCode to CSV, text files, etc?  I would like to dump all kinds of information out to analyze and sort.  I can dump some data to the debugger, but it is hard to read, is limited in records, and can't be sorted or analyzed very easily. 

Scott
jas0501
Posted : Wednesday, September 15, 2010 1:57:18 AM
Registered User
Joined: 12/31/2005
Posts: 2,499

QUOTE (machangman)
QUOTE (Kuf)
There is currently no way to read the file date because of the IO restrictions. We want to drop the IO restrictions shortly after the release of version 5.


So when might we be able to output from RealCode to CSV, text files, etc?  I would like to dump all kinds of information out to analyze and sort.  I can dump some data to the debugger, but it is hard to read, is limited in records, and can't be sorted or analyzed very easily. 

Scott

Export currently allows creating csv files.

Multiple values can also be output during export using label as in

label = Ma5.value & "," &MA10.value &"," & Ma20.value & "," ...etc

One would just need to manually adjust the header line after the export.



Asto the origincal question one can currently add a timestamp as the first record and read it before processing the rest of the info, as a workaround until the IO restrictions are lifted.

 

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.