[{"data":1,"prerenderedAt":265},["ShallowReactive",2],{"/dict/file-write":3,"/dict/file-write-surround":254},{"id":4,"title":5,"body":6,"description":221,"extension":222,"meta":223,"navigation":241,"path":250,"seo":251,"stem":252,"__hash__":253},"content/dict/file-write.md","NetLogo Dictionary: file-write",{"type":7,"value":8,"toc":210},"minimark",[9],[10,11,16,35,58,90,112,133,180],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","file-write","region",[17,18,20],"h3",{"id":19},"file-write20",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#file-write","doc-noteref","Reference to file-write","\nfile-write\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n2.0\n",[36,37,41],"h4",{"id":38,"className":39},"file-write-value",[40],"section-heading",[21,42,46],{"className":43,"href":45},[44],"section-anchor","#file-write-value",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54],"p",{},"file-write ",[55,56,57],"em",{},"value",[51,59,60,61,63,64,67,68,80,81,89],{},"This command will output ",[55,62,57],{},", which can be a number,\nstring, list, boolean, or nobody to an opened file, ",[55,65,66],{},"not","followed by a carriage return (unlike ",[69,70,72],"primitive",{"displayText":71,"permalink":71},"file-print",[21,73,71],{"href":74,"className":75,"dataDisplayText":71,"rel":77,"target":79,"title":71},"/dictionary#file-print",[76],"netlogo-wiki-link",[78],"noopener","_self"," and ",[69,82,84],{"displayText":83,"permalink":83},"file-show",[21,85,83],{"href":86,"className":87,"dataDisplayText":83,"rel":88,"target":79,"title":83},"/dictionary#file-show",[76],[78],").",[51,91,92,93,95,96,102,103,111],{},"This agent is ",[55,94,66],{}," printed before the value, unlike ",[69,97,98],{"displayText":83,"permalink":83},[21,99,83],{"href":86,"className":100,"dataDisplayText":83,"rel":101,"target":79,"title":83},[76],[78],". Its output also includes quotes around\nstrings and is prepended with a space. It will output the value in\nsuch a manner that ",[69,104,106],{"displayText":105,"permalink":105},"file-read",[21,107,105],{"href":108,"className":109,"dataDisplayText":105,"rel":110,"target":79,"title":105},"/dictionary#file-read",[76],[78]," will be able\nto interpret it.",[51,113,114,115,123,124,132],{},"Note that this command is the file i/o equivalent of ",[69,116,118],{"displayText":117,"permalink":117},"write",[21,119,117],{"href":120,"className":121,"dataDisplayText":117,"rel":122,"target":79,"title":117},"/dictionary#write",[76],[78],", and ",[69,125,127],{"displayText":126,"permalink":126},"file-open",[21,128,126],{"href":129,"className":130,"dataDisplayText":126,"rel":131,"target":79,"title":126},"/dictionary#file-open",[76],[78]," needs to\nbe called before this command can be used.",[134,135,136],"pre",{},[137,138,139,144,145,150,153,144,157,162,164,165,144,168,144,172,144,175,179],"code",{},[28,140,126],{"className":141},[142,143],"token","command"," ",[28,146,149],{"className":147},[142,148],"string","\"locations.txt\"",[151,152],"br",{},[28,154,156],{"className":155},[142,143],"ask",[28,158,161],{"className":159},[142,160],"reporter","turtles",[151,163],{},"  [ ",[28,166,14],{"className":167},[142,143],[28,169,171],{"className":170},[142,160],"xcor",[28,173,14],{"className":174},[142,143],[28,176,178],{"className":177},[142,160],"ycor"," ]",[51,181,182,183,189,190,189,196,204,205,209],{},"See also ",[69,184,185],{"displayText":71,"permalink":71},[21,186,71],{"href":74,"className":187,"dataDisplayText":71,"rel":188,"target":79,"title":71},[76],[78],", ",[69,191,192],{"displayText":83,"permalink":83},[21,193,83],{"href":86,"className":194,"dataDisplayText":83,"rel":195,"target":79,"title":83},[76],[78],[69,197,199],{"displayText":198,"permalink":198},"file-type",[21,200,198],{"href":201,"className":202,"dataDisplayText":198,"rel":203,"target":79,"title":198},"/dictionary#file-type",[76],[78],",\nand ",[21,206,208],{"href":207},"/programming#output","Output (/programming guide)",".",{"title":211,"searchDepth":212,"depth":213,"links":214},"",5,3,[215],{"id":19,"depth":213,"text":216,"children":217},"\nfile-write\n\n2.0\n",[218],{"id":38,"depth":219,"text":220},4,"file-write value","Documentation for the file-write primitive.","md",{"source":224,"metadataOutputPath":225,"projectConfig":226,"language":233,"inheritFrom":242,"output":241,"version":227,"layout":243,"dictionaryDisplayName":244,"dictionaryHomeDirectory":245,"indexFileURI":246,"currentItemId":14,"currentItemLabel":14,"primRoot":247,"icon":248,"assetsRoot":249},"autogen/dict/file-write.md","content/dict/file-write.metadata.yaml",{"version":227,"projectRoot":209,"scanRoot":228,"outputRoot":229,"defaults":230,"engine":236,"partials":237,"dedupeIdenticalDiskWrites":241},"7.0.4","autogen","content",{"inheritFrom":231,"language":233,"output":234,"extension":222,"title":235,"version":227},[232],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":238,"extensions":239},[209],[240,222],"mustache",true,[232],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/file-write",{"title":5,"description":221},"dict/file-write","bqQQHiMDOh6omRnpLYRa7PVLmd9N0HvIW_Y7ws-OSrA",[255,260],{"title":256,"path":257,"stem":258,"description":259},"NetLogo Dictionary: file-type","/dict/file-type","dict/file-type","Documentation for the file-type primitive.",{"title":261,"path":262,"stem":263,"description":264},"NetLogo Dictionary: filter","/dict/filter","dict/filter","Documentation for the filter primitive.",1777657808872]